Application Display Method and Electronic Device

ABSTRACT

An application display method and an electronic device. An electronic device includes a first application. The electronic device detects a first operation. The electronic device displays, in a landscape orientation state, a first interface of the first application in a first area of a display screen of the electronic device in response to the first operation. The electronic device detects a second operation performed on the first interface, where the second operation is used to open a second interface of the first application. The electronic device displays the second interface in a second area in response to the second operation. The display screen includes at least two areas, the at least two areas include the first area and the second area, and different areas do not overlap.

TECHNICAL FIELD

Embodiments of this application relate to the field of electronictechnologies, and in particular, to an application display method and anelectronic device.

BACKGROUND

With development of electronic technologies, more services can beprocessed by portable electronic devices such as mobile phones andtablets, and more applications can be used on electronic devices.Generally, a user uses an application on an electronic device in aportrait orientation state of the electronic device, and the applicationon the electronic device can usually support display in a portrait mode.In a portrait orientation state, a height of a display screen is greaterthan a width of the display screen, that is, a vertical length of thedisplay screen is greater than a horizontal length of the displayscreen. When an electronic device is in a landscape orientation state, awidth of the display screen is greater than a height of the displayscreen, that is, a horizontal length of the display screen is greaterthan a vertical length of the display screen; and consequently, someapplications cannot be normally displayed.

SUMMARY

Embodiments of this application provide an application display methodand an electronic device, to normally display an interface of anapplication in a landscape orientation state of an electronic device.

To achieve the foregoing objective, the following technical solutionsare used in the embodiments of this application.

According to a first aspect, an embodiment of this application providesan application display method. The method is applied to an electronicdevice including a first application. The application display methodincludes: An electronic device detects a first operation. The electronicdevice displays, in a landscape orientation state, a first interface ofa first application in a first area of a display screen in response tothe first operation. The electronic device detects a second operationperformed on the first interface, where the second operation is used toopen a second interface of the first application. The electronic devicedisplays the second interface in a second area in response to the secondoperation. The display screen includes at least two areas, the at leasttwo areas include the first area and the second area, and differentareas do not overlap. In this solution, in the landscape orientationstate of the electronic device, the display screen is divided into thefirst area and the second area, each of which is relatively narrow. Inthis case, the electronic device can display the first interface of thefirst application in the first area, and display a second interface of asecond application in the second area.

In a possible implementation, when the electronic device displays, inthe landscape orientation state, the first interface of the firstapplication in the first area of the display screen of the electronicdevice in response to the first operation, the electronic device doesnot display an interface of the first application in the second area.For example, a pattern (for example, a wallpaper pattern) may bedisplayed in the second area; a desktop background may be displayed inthe second area, that is, a part of the desktop background is presentedin the second area; or the second area may be blank.

In another possible implementation, an absolute value of a differencebetween an aspect ratio of each area and a preset ratio is less than orequal to a first preset value, and the aspect ratio is a ratio between avertical length and a horizontal length of the area in the landscapeorientation state.

In this way, the aspect ratio of each area divided from the displayscreen differs slightly from the preset ratio, and the area is verticalbar-shaped. Therefore, an interface of the first application can benormally displayed in each area.

In another possible implementation, that the electronic device displaysthe second interface in a second area in response to the secondoperation includes: If the second interface and the first interfacecorrespond to a same level, the electronic device displays the secondinterface in the second area in response to the second operation. Themethod further includes: If the second interface is at a level lowerthan the first interface, the electronic device displays the secondinterface in the first area in response to the second operation.

In another possible implementation, when the electronic device displaysthe second interface in the second area in response to the secondoperation, the first interface is still displayed in the first area,that is, content displayed in the second area remains unchanged.

In another possible implementation, the landscape orientation state is astate in which an included angle between long sides of the displayscreen and a horizontal plane is less than or equal to a second presetvalue.

In other words, in the landscape orientation state, the display screenof the electronic device is basically horizontal bar-shaped for a user.

In another possible implementation, before the electronic device detectsthe first operation, the method further includes: The electronic devicedisplays a desktop in full screen in the landscape orientation state.The first operation is an operation used to start the first application.

In other words, when displaying the desktop in a landscape mode, theelectronic device may display, in response to a user operation, aninterface of the first application in an area divided from the displayscreen.

In another possible implementation, before the electronic device detectsthe first operation, the method further includes: The electronic devicedisplays the first interface in full screen in a portrait orientationstate. The first operation is an operation of switching from theportrait orientation state to the landscape orientation state.

In other words, when displaying the first interface in a portrait mode,after the electronic device display is switched to the landscapeorientation state, the electronic device may display the first interfacein the area divided from the display screen.

In another possible implementation, the method further includes: Theelectronic device detects a third operation performed on the firstinterface, where the third operation is used to open a third interfaceof the first application. If the third interface and the first interfacecorrespond to a same level, in response to the third operation, theelectronic device displays the third interface in the first area andstill displays the second interface in the second area. Alternatively,if the third interface is an interface at a level lower than the firstinterface, in response to the third operation, the electronic devicedisplays the third interface in the second area and still displays thefirst interface in the first area.

In other words, the first interface and an interface that are at a samelevel are displayed in the first area, and an interface at a level lowerthan the first interface is displayed at the second area.

In another possible implementation, if the third interface is at a levelhigher than the first interface, the electronic device displays thethird interface in the first area and still displays the secondinterface in the second area; or the electronic device displays thethird interface in the first area and displays the first interface inthe second area.

In another possible implementation, the method further includes: Theelectronic device detects a fourth operation performed on the secondinterface, where the fourth operation is used to open a fourth interfaceof the first application. If the fourth interface and the secondinterface correspond to a same level or the fourth interface is aninterface at a level lower than the second interface, in response to thefourth operation, the electronic device displays the fourth interface inthe second area and still displays the first interface in the firstarea.

In this solution, an interface at a same level as the second interfaceand an interface at a level lower than the second interface aredisplayed in the second area.

In another possible implementation, the method further includes: Theelectronic device detects a fourth operation performed on the secondinterface, where the fourth operation is used to open a fourth interfaceof the first application. If the fourth interface and the secondinterface correspond to a same level, in response to the fourthoperation, the electronic device displays the fourth interface in thesecond area and keeps the interface displayed in the first areaunchanged. Alternatively, if the fourth interface is an interface at alevel lower than the second interface, in response to the fourthoperation, the electronic device displays the fourth interface in thesecond area and displays the second interface in the first area.

In this solution, an interface that is of the first application and thatis displayed in the second area is an interface at a level lower than aninterface that is of the first application and that is displayed in thefirst area.

In another possible implementation, the method further includes: Theelectronic device detects a fifth operation performed on the secondinterface, where the fifth operation is used to open a fifth interfaceof the first application. If the fifth interface is an interface at alevel higher than the second interface, in response to the fifthoperation, the electronic device displays the fifth interface in thesecond area and keeps the interface displayed in the first areaunchanged. Alternatively, if the fifth interface is an interface at alevel higher than the second interface, in response to the fifthoperation, the electronic device displays the fifth interface in thefirst area and keeps the interface displayed in the second areaunchanged.

In another possible implementation, if the fifth interface is the firstinterface at a level higher than the second interface, in response tothe fifth operation, the electronic device stops displaying the secondinterface in the second area (where the content displayed in the secondarea may be the desktop) and still displays the first interface in thefirst area.

In another possible implementation, when the user faces the displayscreen of the electronic device, the second area is located on the rightof the first area.

In this way, when the interface displayed in the second area, that is,on a right side, is at a level lower than the interface displayed in thefirst area, that is, on a left side, this can be convenient for the userto make contrast and perform an operation, and can better conform to usehabits of most users. In addition, the first interface of the firstapplication is first displayed on the left side, and the secondinterface of the second application is then displayed on the right side.This can better conform to use habits of most users.

In another possible implementation, the method further includes: Theelectronic device detects a sixth operation performed on the firstinterface, where the sixth operation is used to open a sixth interfaceof the first application. In response to the sixth operation, theelectronic device displays the sixth interface in the second area andstill displays the first interface in the first area.

In another possible implementation, the method further includes: Theelectronic device detects a seventh operation performed in the firstarea or the second area, where the seventh operation is used to open aseventh interface of the first application. In response to the seventhoperation, the electronic device displays the seventh interface in thesecond area and still displays the first interface in the first area.

In another possible implementation, the method further includes: Theelectronic device detects an eighth operation performed in the firstarea, where the eighth operation is used to open an eighth interface ofthe first application; in this case, in response to the eighthoperation, the electronic device displays the eighth interface in thesecond area and still displays the first interface in the first area.The electronic device detects a ninth operation performed in the secondarea. where the ninth operation is used to open a ninth interface of thefirst application; in this case, in response to the ninth operation, theelectronic device displays the ninth interface in the first area andstill displays the second interface in the second area.

In other words, after the first interface and the second interface ofthe first application are displayed in the landscape orientation state,an interface that is opened on an interface in a current area of thedisplay screen is displayed in another area.

In another possible implementation, the electronic device detects aneighth operation performed in the first area, where the eighth operationis used to open an eighth interface of the first application; in thiscase, in response to the eighth operation, the electronic devicedisplays the eighth interface in the first area and still displays thesecond interface in the second area. The electronic device detects aninth operation performed in the second area, where the ninth operationis used to open a ninth interface of the first application; in thiscase, in response to the ninth operation, the electronic device displaysthe ninth interface in the second area and still displays the firstinterface in the first area.

In other words, after the first interface and the second interface ofthe first application are displayed in the landscape orientation state,an interface that is opened on an interface in a current area of thedisplay screen is still displayed in the current area.

In another possible implementation, that the electronic device displaysa first interface of a first application in a first area of a displayscreen of the electronic device includes; If the first application doesnot support landscape-mode full-screen display, the electronic devicedisplays the first interface of the first application in the first areaof the display screen. If the first application supports landscape-modefull-screen display, the electronic device prompts the user to select adisplay manner, where the display manner includes a landscape-modefull-screen display manner and an area display manner; and in responseto the area display manner selected by the user, the electronic devicedisplays the first interface of the first application in the first areaof the display screen.

In other words, the user can decide whether a manner of displaying aninterface of the first application is the landscape-mode full-screendisplay manner or the area display manner.

In another possible implementation, the method further includes: If theelectronic device is switched to the portrait orientation state, theelectronic device displays a tenth interface of the first application infull screen in the portrait orientation state. The portrait orientationstate is a state in which the included angle between the long sides ofthe display screen and the horizontal plane is greater than the secondpreset value.

In another possible implementation, if the electronic device is switchedto the portrait orientation state, the tenth interface displayed by theelectronic device in full screen in the portrait orientation state maybe an interface that is most recently displayed by the electronic devicein the landscape orientation state; may be an interface on which a useroperation is most recently detected by the electronic device in thelandscape orientation state; or may be an interface that is mostrecently displayed by the electronic device in a preset area in thelandscape orientation state.

According to a second aspect, a technical solution of this applicationprovides an application display apparatus. The apparatus is included inan electronic device, and the apparatus has a function of implementingbehavior of the electronic device in the method according to any one ofthe first aspect or the possible implementations of the first aspect.The function may be implemented by using hardware, or may be implementedby hardware executing corresponding software. The hardware or softwareincludes one or more modules or units corresponding to the function, forexample, a display module or unit and a detection module or unit.

According to a third aspect, an embodiment of this application providesan electronic device, including one or more processors and one or morememories. The one or more memories are coupled to the one or moreprocessors. The one or more memories are configured to store computerprogram code, where the computer program code includes a computerinstruction. When the one or more processors execute the computerinstruction, the electronic device is enabled to perform the applicationdisplay method according to any one of the possible implementations ofthe first aspect.

According to a fourth aspect, an embodiment of this application providesa computer storage medium, including a computer instruction. When thecomputer instruction is run on an electronic device, the electronicdevice is enabled to perform the application display method according toany one of the possible implementations of the first aspect.

According to a fifth aspect, an embodiment of this application providesa computer program product. When the computer program product is run ona computer, an electronic device is enabled to perform the applicationdisplay method according to any one of the possible implementations ofthe first aspect.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is schematic diagrams of landscape orientation states andportrait orientation states of an electronic device according to anembodiment of this application;

FIG. 2A is a schematic diagram of a hardware structure of an electronicdevice according to an embodiment of this application:

FIG. 2B is a schematic diagram of a software structure of an electronicdevice according to an embodiment of this application;

FIG. 3 is a schematic diagram of a display process according to anembodiment of this application:

FIG. 4A is a flowchart of a display method according to an embodiment ofthis application;

FIG. 4B is a flowchart of another display method according to anembodiment of this application;

FIG. 5A is a schematic diagram of an interface of an electronic deviceaccording to an embodiment of this application;

FIG. 5B is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 5C is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 5D is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 6 is a group of schematic diagrams illustrating division of displayareas according to an embodiment of this application;

FIG. 7 is a schematic diagram of a setting interface according to anembodiment of this application:

FIG. 8(a) to FIG. 8(d) are schematic diagrams of a group of settinginterfaces according to an embodiment of this application;

FIG. 9 is a schematic diagram of another setting interface according toan embodiment of this application;

FIG. 10A is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 10B is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application:

FIG. 11A is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application:

FIG. 11B is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 1C is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 12 is a flowchart of determining a display manner according to anembodiment of this application;

FIG. 13 is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 14 is another schematic diagram of an interface of an electronicdevice according to an embodiment of this application;

FIG. 15 is a schematic diagram illustrating division of display areasaccording to an embodiment of this application.

FIG. 16 is a schematic diagram illustrating other division of displayareas according to an embodiment of this application; and

FIG. 17 is a schematic structural diagram of an electronic deviceaccording to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following describes the technical solutions in the embodiments ofthis application with reference to the accompanying drawings in theembodiments of this application. In description of the embodiments ofthis application. “/” means “or” unless otherwise specified. Forexample, A/B may represent A or B. In this specification, “and/or”describes only an association relationship for describing associatedobjects and represents that three relationships may exist. For example,A and/or B may represent the following three cases; Only A exists, bothA and B exist, and only B exists. In addition, in the descriptions inthe embodiments of this application, “a plurality of” means two or morethan two.

The following terms “first” and “second” are merely intended for apurpose of description, and shall not be understood as an indication orimplication of relative importance or implicit indication of the numberof indicated technical features. Therefore, a feature limited by “first”or “second” may explicitly or implicitly include one or more features.In the description of this embodiment, unless otherwise stated, “aplurality of” means two or more than two.

When a user uses an electronic device, the electronic device may be in alandscape orientation state or a portrait orientation state. A displayscreen of the electronic device may include four sides. The four sidesinclude two longer sides that are equal and parallel to each other andthat may be referred to as long sides of the display screen. The foursides further include two shorter sides that are equal and parallel toeach other and that may be referred to as short sides of the displayscreen. In the landscape orientation state, the long sides of thedisplay screen of the electronic device are parallel to a horizontalplane (for example, as shown in (a) in FIG. 1), that is, an includedangle between the long sides of the display screen and the horizontalplane is 0. Alternatively, an included angle 03 between a long side 01of the display screen and a projection 02 of the long side 01 onto ahorizontal plane is less than or equal to a preset value 1 (for example,as shown in (b) in FIG. 1), that is, an included angle between the longsides of the display screen and the horizontal plane is less than orequal to the preset value 1. The preset value 1 (that is, a secondpreset value) is less than or equal to 45°, and a specific value of thepreset value 1 may be set depending on an actual application scenario.For example, the preset value 1 may be 20°. In the landscape orientationstate, the display screen of the electronic device is basicallyhorizontal bar-shaped.

In the landscape orientation state, a height of the display screen ofthe electronic device is less than a width of the display screen, and adepth-to-width ratio (that is, a ratio of the height to the width) ofthe display screen is less than 1. The height of the display screen is alength of a side, of the display screen, that has a relatively smallincluded angle with a vertical plane. The width of the display screen isa length of a side, of the display screen, that has a relatively smallincluded angle with a horizontal plane. The height of the display screencan also be understood as a vertical length of the display screen, thewidth of the display screen can also be understood as a horizontallength of the display screen, and the depth-to-width ratio of thedisplay screen can also be understood as an aspect ratio (that is, aratio of the vertical length to the horizontal length) of the displayscreen.

In the portrait orientation state, the long sides of the display screenof the electronic device are perpendicular to a horizontal plane (forexample, as shown in (c) in FIG. 1). Alternatively, an included angle 03between a long side 01 of the display screen and a projection 02 of thelong side 01 onto a horizontal plane is greater than a preset value 1(for example, as shown in (d) in FIG. 1, the preset value 1 is greaterthan or equal to 45°). In the portrait orientation state, a height ofthe display screen of the electronic device is greater than a width ofthe display screen, a depth-to-width ratio of the display screen isgreater than 1, and the display screen of the electronic device isbasically vertical bar-shaped.

At present, when an electronic device is in a portrait orientationstate, a depth-to-width ratio of a display screen is usually aconventional ratio such as 16:9, 18:9, 20:9, or 16:10. Displayconfigurations of most applications in the electronic device are alsoadapted to this conventional ratio. In the portrait orientation state,the depth-to-width ratio of the display screen of the electronic deviceis equal to or differs slightly from the conventional ratio, andtherefore the electronic device can normally display interfaces ofapplications. When the electronic device is in a landscape orientationstate, the depth-to-width ratio of the display screen of the electronicdevice differs greatly from the conventional ratio, and consequently theelectronic device possibly cannot normally display interfaces ofapplications.

An embodiment of this application provides an application displaymethod. In a landscape orientation state, a horizontal bar-shapeddisplay screen of an electronic device may be divided into a pluralityof narrow vertical bar-shaped areas. These areas are used by theelectronic device for display, and therefore these areas may also bereferred to as display areas. Different display areas do not overlap,and a difference between a depth-to-width ratio of each display area anda preset ratio is relatively small. For example, an absolute value ofthe difference between the depth-to-width ratio of each display area andthe preset ratio is less than or equal to a preset value 2 (that is, afirst preset value). The electronic device can normally display aninterface of an application in a vertical bar-shaped display area.

A depth-to-width ratio of a display area may be a ratio of a height to awidth of the display area. The height of the display area is a length ofa side, of the display area, that has a relatively small included anglewith a vertical plane. The width of the display area is a length of aside, of the display area, that has a relatively small included anglewith a horizontal plane. In the landscape orientation state shown in (a)in FIG. 1, the height of the display area is a length of a side, of thedisplay area, that is parallel to the vertical plane; and the width ofthe display area is a length of a side, of the display area, that isparallel to the horizontal plane. The height of the display area canalso be understood as a vertical length of the display area, the widthof the display area can also be understood as a horizontal length of thedisplay area, and the depth-to-width ratio of the display area can alsobe understood as an aspect ratio of the display area.

The display method provided in this embodiment of this application canbe applied to an electronic device such as a tablet, a mobile phone, awearable device, a vehicle-mounted device, an augmented reality(augmented reality, AR)/virtual reality (virtual reality, VR) device, anotebook computer, an ultra-mobile personal computer (ultra-mobilepersonal computer, UMPC), a netbook, or a personal digital assistant(personal digital assistant, PDA). A specific type of the electronicdevice is not limited in this embodiment of this application.

For example, FIG. 2A is a schematic structural diagram of an electronicdevice 100. The electronic device 100 may include a processor 110, anexternal memory interface 120, an internal memory 121, a universalserial bus (universal serial bus, USB) interface 130, a chargingmanagement module 140, a power management module 141, a battery 142, anantenna 1, an antenna 2, a mobile communications module 150, a wirelesscommunications module 160, an audio module 170, a speaker 170A, atelephone receiver 170B, a microphone 170C, an earphone jack 170D, asensor module 180, a key 190, a motor 191, an indicator 192, a camera193, a display screen 194, a subscriber identity module (subscriberidentification module, SIM) card interface 195, and the like. The sensormodule 180 may include a pressure sensor 180A, a gyroscope sensor 180B,a barometric pressure sensor 180C, a magnetic sensor 180D, anacceleration sensor 180E, a distance sensor 180F, an optical proximitysensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, atouch sensor 180K, an ambient light sensor 180L, a bone conductionsensor 180M, a gravity sensor, and the like.

It can be understood that the structure illustrated in this embodimentof this application does not constitute any specific limitation on theelectronic device 100. In some other embodiments of this application,the electronic device 100 may include more or fewer components thanthose shown in the figure, a combination of some components, splittingof some components, or a different arrangement of the components. Theillustrated components may be implemented by hardware, software, or acombination of software and hardware.

The processor 110 may include one or more processing units. For example,the processor 110 may include an application processor (applicationprocessor. AP), a modem processor, a graphics processing unit (graphicsprocessing unit, GPU), an image signal processor (image signalprocessor, ISP), a controller, a memory, a video codec, a digital signalprocessor (digital signal processor, DSP), a baseband processor, and/ora neural-network processing unit (neural-network processing unit, NPU).Different processing units may be independent components, or may beintegrated into one or more processors.

The controller may be a nerve center and a command center of theelectronic device 100. The controller may generate an operation controlsignal based on instruction operation code and a sequence signal, tocontrol instruction fetching and instruction execution.

The processor 110 may further be provided with a memory, configured tostore an instruction and data. In some embodiments, the memory in theprocessor 110 is a cache memory. The memory may store an instruction ordata recently used or cyclically used by the processor 110. If theprocessor 110 needs to use the instruction or data again, the processor110 may directly invoke the instruction or data from the memory. Thisavoids repeated access and reduces a waiting time of the processor 110,thereby improving system efficiency.

In some embodiments, the processor 110 may include one or moreinterfaces. The interface may include an inter-integrated circuit(inter-integrated circuit, I2C) interface, an inter-integrated circuitsound (inter-integrated circuit sound, I2S) interface, a pulse codemodulation (pulse code modulation, PCM) interface, a universalasynchronous receiver/transmitter (universal asynchronousreceiver/transmitter, UART) interface, a mobile industry processorinterface (mobile industry processor interface, MIPI), a general-purposeinput/output (general-purpose input/output, GPIO) interface, asubscriber identity module (subscriber identity module, SIM) interface,a universal serial bus (universal serial bus, USB) interface, and/or thelike.

The I2C interface is a two-way synchronization serial bus, and includesa serial data line (serial data line, SDA) and a serial clock line(derail clock line, SCL). In some embodiments, the processor 110 mayinclude a plurality of I2C buses. The processor 110 may be separatelycoupled to the touch sensor 180K, a charger, a flashlight, the camera193, and the like through different I2C bus interfaces. For example, theprocessor 110 may be coupled to the touch sensor 180K through an I2Cinterface, so that the processor 110 communicates with the touch sensor180K through the I2C bus interface, to implement a touch function of theelectronic device 100.

The I2S interface may be used for audio communication. In someembodiments, the processor 110 may include a plurality of I2S buses. Theprocessor 110 may be coupled to the audio module 170 through an I2S bus,to implement communication between the processor 110 and the audiomodule 170. In some embodiments, the audio module 170 may transfer anaudio signal to the wireless communications module 160 through an I2Sinterface, to implement a function of answering a call by using aBluetooth headset.

The PCM interface may also be used for audio communication, to performsampling, quantization, and encoding on an analog signal. In someembodiments, the audio module 170 may be coupled to the wirelesscommunications module 160 through the PCM bus interface. In someembodiments, the audio module 170 may alternatively transfer an audiosignal to the wireless communications module 160 through the PCMinterface, to implement a function of answering a call by using aBluetooth headset. Both the I2S interface and the PCM interface may beused for audio communication.

The UART interface is a universal serial data bus for asynchronouscommunication. The bus is a two-way communications bus that convertsto-be-transmitted data between serial communication and parallelcommunication. In some embodiments, the UART interface is usuallyconfigured to connect the processor 110 to the wireless communicationsmodule 160. For example, the processor 110 communicates with a Bluetoothmodule in the wireless communications module 160 through the UARTinterface, to implement a Bluetooth function. In some embodiments, theaudio module 170 may transfer an audio signal to the wirelesscommunications module 160 through the UART interface, to implement afunction of playing music by using a Bluetooth headset.

The MIPI interface may be configured to connect the processor 110 toperipheral components such as the display screen 194 and the camera 193.The MIPI interface includes a camera serial interface (camera serialinterface, CSI), a display serial interface (display serial interface,DSI), and the like. In some embodiments, the processor 110 communicateswith the camera 193 through the CSI interface, to implement aphotographing function of the electronic device 100. The processor 110communicates with the display screen 194 through the DSI interface, toimplement a display function of the electronic device 100.

The GPIO interface may be configured by using software. The GPIOinterface may be configured as a control signal path, or may beconfigured as a data signal path. In some embodiments, the GPIOinterface may be configured to connect the processor 110 to the camera193, the display screen 194, the wireless communications module 160, theaudio module 170, the sensor module 180, and the like. The GPIOinterface may further be configured as an I2C interface, an I2Sinterface, a UART interface, a MIPI interface, or the like.

The USB interface 130 is an interface complying with the USB standardspecification, and may be specifically a mini USB interface, a micro USBinterface, a USB type C interface, or the like. The USB interface 130may be configured to connect to the charger to charge the electronicdevice 100, may also be configured for data transmission between theelectronic device 100 and a peripheral device, and may also beconfigured to connect to an earphone to play audio through the earphone.The interface may further be configured to connect to another electronicdevice such as an AR device.

It can be understood that interface connection relationships between themodules that are described in this embodiment of this application aremerely examples for description, and do not constitute any limitation ona structure of the electronic device 100. In some other embodiments ofthis application, alternatively, the electronic device 100 may useinterface connection manners different from those in this embodiment oruse a combination of a plurality of interface connection manners.

The charging management module 140 is configured to receive a charginginput from the charger. The charger may be a wireless charger or a wiredcharger. In some wired charging embodiments, the charging managementmodule 140 may receive a charging input from a wired charger through theUSB interface 130. In some wireless charging embodiments, the chargingmanagement module 140 may receive a wireless charging input through awireless charging coil of the electronic device 100. The chargingmanagement module 140 may further supply power to the electronic devicethrough the power management module 141 while charging the battery 142.

The power management module 141 is configured to connect to the battery142, the charging management module 140, and the processor 110. Thepower management module 141 receives an input from the battery 142and/or an input from the charging management module 140, to supply powerto the processor 110, the internal memory 121, an external memory, thedisplay screen 194, the camera 193, the wireless communications module160, and the like. The power management module 141 may further beconfigured to monitor parameters such as a battery capacity, a quantityof battery cycles, and a battery health status (electric leakage orimpedance). In some other embodiments, the power management module 141may alternatively be disposed in the processor 110. In some otherembodiments, the power management module 141 and the charging managementmodule 140 may alternatively be disposed in a same component.

A wireless communication function of the electronic device 100 may beimplemented by using the antenna 1, the antenna 2, the mobilecommunications module 150, the wireless communications module 160, themodem processor, the baseband processor, and the like.

The antenna 1 and the antenna 2 are configured to transmit and receiveelectromagnetic wave signals. Each antenna in the electronic device 100may be configured to cover one or more communication frequency bands.Different antennas may be multiplexed to improve antenna utilization.For example, the antenna 1 may be multiplexed into a diversity antennaof a wireless local area. In some other embodiments, an antenna may beused in combination with a tuning switch.

The mobile communications module 150 may provide wireless communicationsolutions, including 2G, 3G, 4G, 5G, and the like, applied to theelectronic device 100. The mobile communications module 150 may includeat least one filter, a switch, a power amplifier, a low noise amplifier(low noise amplifier, LNA), and the like. The mobile communicationsmodule 150 may receive an electromagnetic wave through the antenna 1;perform filtering, amplification, and other processing on the receivedelectromagnetic wave, and transfer a processed electromagnetic wave tothe modem processor for demodulation. The mobile communications module150 may further amplify a signal modulated by the modem processor,convert an amplified signal into an electromagnetic wave by using theantenna 1, and radiate the electromagnetic wave through the antenna 1.In some embodiments, at least some function modules of the mobilecommunications module 150 may be disposed m the processor 110. In someembodiments, at least some function modules of the mobile communicationsmodule 150 may be disposed in a same component as at least some modulesof the processor 110.

The modem processor may include a modulator and a demodulator. Themodulator is configured to modulate a to-be-sent low frequency basebandsignal into a medium/high frequency signal. The demodulator isconfigured to demodulate a received electromagnetic wave signal into alow frequency baseband signal. Then, the demodulator transfers the lowfrequency baseband signal obtained through demodulation to the basebandprocessor for processing. After the low frequency baseband signal isprocessed by the baseband processor, a processed low frequency basebandsignal is transferred to the application processor. The applicationprocessor outputs a sound signal through an audio device (which is notlimited to the speaker 170A and the telephone receiver 170B), ordisplays an image or a video through the display screen 194. In someembodiments, the modem processor may be an independent component. Insome other embodiments, the modem processor may be independent of theprocessor 110, and is disposed in a same component as the mobilecommunications module 150 or another function module.

The wireless communications module 160 may provide wirelesscommunication solutions applied to the electronic device 100, forexample, wireless local area network (wireless local area networks,WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network),Bluetooth (bluetooth, BT), global navigation satellite system (globalnavigation satellite system, GNSS), frequency modulation (frequencymodulation, FM), near field communication (near field communication,NFC), and infrared (infrared, IR) technologies. The wirelesscommunications module 160 may be one or more components integrated withat least one communication processing module. The wirelesscommunications module 160 receives an electromagnetic wave through theantenna 2, performs frequency modulation and filtering processing on theelectromagnetic wave signal, and sends a processed signal to theprocessor 110. The wireless communications module 160 may furtherreceive a to-be-sent signal from the processor 110, perform frequencymodulation and amplification processing on the to-be-sent signal,convert a processed to-be-sent signal into an electromagnetic wave byusing the antenna 2, and radiate the electromagnetic wave through theantenna 2.

In some embodiments, in the electronic device 100, the antenna 1 iscoupled to the mobile communications module 150, and the antenna 2 iscoupled to the wireless communications module 160, so that theelectronic device 100 can communicate with a network and another deviceby using a wireless communications technology. The wirelesscommunications technology may include global system for mobilecommunications (global system for mobile communications, GSM), generalpacket radio service (general packet radio service, GPRS), code divisionmultiple access (code division multiple access, CDMA), wideband codedivision multiple access (wideband code division multiple access,WCDMA), time division-synchronous code division multiple access(time-division code division multiple access, TD-SCDMA), long termevolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, IR,and/or other technologies. The GNSS may include a global positioningsystem (global positioning system, GPS), a global navigation satellitesystem (global navigation satellite system, GLONASS), a BeiDounavigation satellite system (beidou navigation satellite system, BDS), aquasi-zenith satellite system (quasi-zenith satellite system, QZSS),and/or a satellite-based augmentation system (satellite basedaugmentation systems, SBAS).

The electronic device 100 implements a display function by using theGPU, the display screen 194, the application processor, and the like.The GPU is a microprocessor for image processing, and is connected tothe display screen 194 and the application processor. The GPU isconfigured to perform mathematical and geometric calculation, and isconfigured to perform graphics rendering. The processor 110 may includeone or more GPUs, and execute a program instruction to generate orchange display information.

The display screen 194 is configured to display an image, a video, andthe like. The display screen 194 includes a display panel. The displaypanel may use a liquid crystal display (liquid crystal display, LCD), anorganic light-emitting diode (organic light-emitting diode, OLED), anactive-matrix organic light-emitting diode (active-matrix organic lightemitting diode, AMOLED), a flexible light-emitting diode (flexlight-emitting diode, FLED), a mini LED, a micro LED, a micro OLED, aquantum dot light-emitting diode (quantum dot light emitting diodes,QLED), or the like. In some embodiments, the electronic device 100 mayinclude one or N display screens 194, where N is a positive integergreater than 1. In this embodiment of this application, in a landscapeorientation state, the display screen 194 may include a plurality ofdisplay areas, and different interfaces of one application may besimultaneously displayed in different display areas.

The electronic device 100 may implement a photographing function byusing the ISP, the camera 193, the video codec, the GPU, the displayscreen 194, the application processor, and the like.

The ISP is configured to process data fed back by the camera 193. Forexample, during photographing, after a shutter is opened, light istransferred to a photosensitive element of the camera through a lens, anoptical signal is converted into an electrical signal, and thephotosensitive element of the camera transfers the electrical signal tothe ISP for processing, to convert the electrical signal into an imagevisible to naked eyes. The ISP may further perform algorithm-basedoptimization on the image in terms of noise, brightness, and skin color.The ISP may further optimize parameters such as an exposure and a colortemperature in a photographing scenario. In some embodiments, the ISPmay be disposed in the camera 193.

The camera 193 is configured to capture a static image or a video. Anoptical image of an object is generated through the lens and isprojected onto the photosensitive element. The photosensitive elementmay be a charge coupled device (charge coupled device, CCD) or acomplementary metal-oxide-semiconductor (complementarymetal-oxide-semiconductor, CMOS) phototransistor. The photosensitiveelement converts an optical signal into an electrical signal, and thentransfers the electrical signal to the ISP for converting the electricalsignal into a digital image signal. The ISP outputs the digital imagesignal to the DSP for processing. The DSP converts the digital imagesignal into an image signal in a standard RGB or YUV format or the like.In some embodiments, the electronic device 100 may include one or Ncameras 193, where N is a positive integer greater than 1.

The digital signal processor is configured to process a digital signal.The digital signal processor not only can process the digital imagesignal, but also can process other digital signals. For example, whenthe electronic device 100 selects a frequency, the digital signalprocessor is configured to perform Fourier transformation on frequencyenergy, and the like.

The video codec is configured to compress or decompress a digital video.The electronic device 100 can support one or more types of video codecs.In this way, the electronic device 100 may play or record videos in aplurality of encoding formats, for example, a moving picture expertsgroup (moving picture experts group. MPEG)-1, MPEG-2, MPEG-3, andMPEG-4.

The NPU is a neural-network (neural-network, NN) computing processorthat rapidly processes input information by using a biological neuralnetwork structure, for example, by using a mode of transfer betweenhuman brain neurons, and may further perform continuous self-learning.Applications such as intelligent cognition of the electronic device 100,for example, image recognition, facial recognition, voice recognition,and text understanding, can be implemented by using the NPU.

The external memory interface 120 may be configured to connect to anexternal memory card, for example, a micro SD card, to expand a storagecapability of the electronic device 100. The external memory cardcommunicates with the processor 110 through the external memoryinterface 120, to implement a data storage function, for example, tostore music, video, and other files in the external memory card.

The internal memory 121 may be configured to store computer executableprogram code, where the executable program code includes an instruction.The processor 110 performs various function applications and dataprocessing of the electronic device 100 by running the instructionstored in the internal memory 121. The internal memory 121 may include aprogram storage area and a data storage area. The program storage areamay store an operating system, an application program required by atleast one function (for example, a voice playback function or an imageplayback function), and the like. The data storage area may store data(such as audio data and a phone book) created during use of theelectronic device 100, and the like. In addition, the internal memory121 may include a high-speed random access memory, and may furtherinclude a non-volatile memory such as at least one magnetic disk storagedevice, a flash memory device, and a universal flash storage (universalflash storage, UFS).

The electronic device 100 may implement an audio function, such as musicplaying and recording, by using the audio module 170, the speaker 170A,the telephone receiver 170B, the microphone 170C, the earphone jack170D, the application processor, and the like.

The audio module 170 is configured to convert digital audio informationinto an analog audio signal output, and is also configured to convert ananalog audio input into a digital audio signal. The audio module 170 mayfurther be configured to encode and decode audio signals. In someembodiments, the audio module 170 may be disposed in the processor 110,or some function modules of the audio module 170 may be disposed in theprocessor 110.

The speaker 170A, also referred to as a “loudspeaker”, is configured toconvert an audio electrical signal into a sound signal. The electronicdevice 100 may be used for listening to music or answering a hands-freecall by using the speaker 170A.

The telephone receiver 170B, also referred to as an “earpiece”, isconfigured to convert an audio electrical signal into a sound signal.When a call or voice information is received on the electronic device100, voice can be heard by putting the telephone receiver 170B near ahuman ear.

The microphone 170C, also be referred to as a “mic” or a “mike”, isconfigured to convert a sound signal into an electrical signal. Whenmaking a call or sending voice information, a user may put themicrophone 170C near the mouth and speak, to input a sound signal intothe microphone 170C. The electronic device 100 may be provided with atleast one microphone 170C. In some other embodiments, the electronicdevice 100 may be provided with two microphones 170C, which may furtherimplement a noise canceling function in addition to sound signalcollection. In some other embodiments, the electronic device 100 mayalternatively be provided with three, four, or more microphones 170C,which implement sound signal collection and noise canceling, and mayfurther identify a sound source, to implement a directional recordingfunction and the like.

The earphone jack 170D is configured to connect to a wired earphone. Theearphone jack 170D may be a USB interface 130, or may be a 3.5 mm openmobile terminal platform (open mobile terminal platform. OMTP) standardinterface or a Cellular Telecommunications Industry Association of theUSA (cellular telecommunications industry association of the USA, CTIA)standard interface.

The pressure sensor 180A is configured to sense a pressure signal, andmay convert the pressure signal into an electrical signal. In someembodiments, the pressure sensor 180A may be disposed on the displayscreen 194. There are many types of pressure sensors 180A, for example,a resistive pressure sensor, an inductive pressure sensor, and acapacitive pressure sensor. A capacitive pressure sensor may include atleast two parallel plates made of a conducting material. When force isexerted on the pressure sensor 180A, a capacitance between electrodeschanges. The electronic device 100 determines a strength of the pressurebased on a change of the capacitance. When a touch operation isperformed on the display screen 194, the electronic device 100 detects astrength of the touch operation by using the pressure sensor 180A. Theelectronic device 100 may also calculate a touch location based on asignal detected by the pressure sensor 180A In some embodiments, touchoperations that are performed on a same touch location but havedifferent touch operation strengths may correspond to differentoperation instructions. For example, when a touch operation with a touchoperation strength less than a first pressure threshold is performed onan icon of an SMS message application, an instruction for viewing an SMSmessage is executed. When a touch operation with a touch operationstrength greater than or equal to the first pressure threshold isperformed on the icon of the SMS message application, an instruction forcreating an SMS message is executed.

The gyroscope sensor 180B may be configured to determine a movingposture of the electronic device 100. In some embodiments, angularvelocities of the electronic device 100 relative to three axes (that is,x, y, and z axes) may be determined by using the gyroscope sensor 180B.The gyroscope sensor 180B may be configured to implement imagestabilization during photographing. For example, when a shutter ispressed, the gyroscope sensor 180B detects an angle at which theelectronic device 100 jitters; and calculates, based on the angle, adistance that needs to be compensated by a lens module, to allow thelens to counteract the jitter of the electronic device 100 throughreverse motion, thereby implementing image stabilization. The gyroscopesensor 180B may also be used in navigation and motion sensing gamescenarios.

The barometric pressure sensor 180C is configured to measure atmosphericpressure. In some embodiments, the electronic device 100 calculates analtitude based on the atmospheric pressure value measured by thebarometric pressure sensor 180C, to assist in positioning andnavigation.

The magnetic sensor 180D includes a Hall effect sensor. The electronicdevice 100 may detect opening/closing of a flip leather case by usingthe magnetic sensor 180D. In some embodiments, when the electronicdevice 100 is a flip phone, the electronic device 100 may detectopening/closing of a clamshell by using the magnetic sensor 180D.Further, a feature such as automatic unlocking implemented when the flipphone is flipped open is set based on a detected open/closed state ofthe leather case or a detected open/closed state of the clamshell.

The acceleration sensor 180E may detect magnitude of accelerations ofthe electronic device 100 in all directions (usually along three axes),and may detect magnitude and a direction of gravity when the electronicdevice 100 is still. The acceleration sensor 180E may further beconfigured to identify a posture of the electronic device, and isapplied to screen switching between a landscape mode and a portraitmode, a pedometer, and other applications.

The distance sensor 180F is configured to measure a distance. Theelectronic device 100 may measure a distance in an infrared or a lasermanner. In some embodiments, in a photographing scenario, the electronicdevice 100 may measure a distance by using the distance sensor 180F, toimplement rapid focusing.

The optical proximity sensor 180G may include, for example, alight-emitting diode (LED) and an optical detector such as a photodiode.The light-emitting diode may be an infrared light-emitting diode. Theelectronic device 100 emits infrared light by using the light-emittingdiode. The electronic device 100 detects reflected infrared light from anearby object by using the photodiode. When detecting sufficientreflected light, the electronic device 100 can determine that there isan object near the electronic device 100. When detecting insufficientreflected light, the electronic device 100 can determine that there isno object near the electronic device 100. By using the optical proximitysensor 180G, the electronic device 100 may detect that the user holdsthe electronic device 100 close to an ear during a call, toautomatically turn off a screen for power saving. The optical proximitysensor 180G may also be used for automatic screen unlocking or lockingin a leather case mode or a pocket mode.

The ambient light sensor 180L is configured to sense ambient lightbrightness. The electronic device 100 may adaptively adjust brightnessof the display screen 194 based on the sensed ambient light brightness.The ambient light sensor 180L may also be configured to automaticallyadjust white balance during photographing. The ambient light sensor 180Lmay also cooperate with the optical proximity sensor 180G to detectwhether the electronic device 100 is in a pocket, to prevent touch bymistake.

The fingerprint sensor 180H is configured to collect a fingerprint. Byusing a feature of the collected fingerprint, the electronic device 100may implement unlocking by using the fingerprint, access an applicationlock, take a photo by using the fingerprint, answer a call by using thefingerprint, and the like.

The temperature sensor 180J is configured to detect a temperature. Insome embodiments, the electronic device 100 executes a temperatureprocessing policy by using the temperature detected by the temperaturesensor 180J. For example, when the temperature reported by thetemperature sensor 180J exceeds a threshold, the electronic device 100degrades performance of the processor nearby the temperature sensor180J, to reduce power consumption for thermal protection. In some otherembodiments, when the temperature is less than another threshold, theelectronic device 100 heats up the battery 142, to avoid abnormalpower-off of the electronic device 100 due to a low temperature. In someother embodiments, when the temperature is less than still anotherthreshold, the electronic device 100 increases an output voltage of thebattery 142, to avoid abnormal power-off due to a low temperature.

The touch sensor 180K is also referred to as a “touch panel”. The touchsensor 180K may be disposed on the display screen 194. The touch sensor180K and the display screen 194 form a touchscreen, which is alsoreferred to as a “touchscreen”. The touch sensor 180K is configured todetect a touch operation performed on or near the touch sensor 180K. Thetouch sensor may transfer the detected touch operation to theapplication processor to determine a type of a touch event. A visualoutput related to the touch operation may be provided by using thedisplay screen 194. In some other embodiments, the touch sensor 180K mayalternatively be disposed on a surface of the electronic device 100, anda location of the touch sensor 180K is different from that of thedisplay screen 194.

The bone conduction sensor 180M may obtain a vibration signal. In someembodiments, the bone conduction sensor 180M may obtain a vibrationsignal of a vibrating bone block of a vocal-cord part of a human body.The bone conduction sensor 180M may also be in contact with a pulse of ahuman body to receive blood pressure fluctuating signals. In someembodiments, the bone conduction sensor 180M may alternatively bedisposed in an earphone, to form a bone conduction earphone incombination. The audio module 170 may obtain a voice signal by parsingthe vibration signal of the vibrating bone block of the vocal-cord partobtained by the bone conduction sensor 180M, to implement a voicefunction. The application processor may obtain heart rate information byparsing the blood pressure fluctuating signals obtained by the boneconduction sensor 180M, to implement a heart rate detection function.

The electronic device 100 may determine whether the electronic device iscurrently in a landscape orientation state or a portrait orientationstate, by using one or more sensors; the acceleration sensor 180E, thegyroscope sensor 180B, or the gravity sensor.

The key 190 includes an on/offkey, a volume key, and the like. The key190 may be a mechanical key, or may be a touch key. The electronicdevice 100 may receive a key input, and generate a key signal inputrelated to a user setting and function control of the electronic device100.

The motor 191 may generate a vibration alert. The motor 191 may beconfigured to provide an incoming call vibration alert and a touchvibration feedback. For example, touch operations performed on differentapplications (such as photographing and audio playback) may correspondto different vibration feedback effects. For touch operations performedin different areas of the display screen 194, the motor 191 may alsocorrespond to different vibration feedback effects. Differentapplication scenarios (such as time reminding, information receiving, analarm clock application, and a game application) may also correspond todifferent vibration feedback effects. A touch vibration feedback effectcan also be customized.

The indicator 192 may be an indicator light, may be configured toindicate a charging status and a battery level change, and may also beconfigured to indicate a message, a missed call, a notification, and thelike.

The SIM card interface 195 is configured to connect to a SIM card. TheSIM card may be inserted into the SIM card interface 195 or removed fromthe SIM card interface 195, to come into contact with or be separatedfrom the electronic device 100. The electronic device 100 can supportone or N SIM card interfaces, where N is a positive integer greaterthan 1. The SIM card interface 195 can support a nano-SIM card, amicro-SIM card, a SIM card, and the like. A plurality of cards may beinserted into a same SIM card interface 195 at the same time. Theplurality of cards may be of a same type or different types. The SIMcard interface 195 may also be compatible with different types of SIMcards. The SIM card interface 195 may also be compatible with anexternal memory card. The electronic device 100 interacts with a networkby using a SIM card, to implement a call function, a data communicationfunction, and the like. In some embodiments, the electronic device 100uses an eSIM, that is, an embedded SIM card. The eSIM card may beembedded in the electronic device 100 and cannot be separated from theelectronic device 100.

A software system of the electronic device 100 may use a layeredarchitecture, an event driven architecture, a microkernel architecture,a microservices-based architecture, or a cloud architecture. In thisembodiment of this application, an Android system with a layeredarchitecture is used as an example for describing a software structureof the electronic device 100.

FIG. 2B is a block diagram of a software structure of an electronicdevice 100 according to an embodiment of this application. In thelayered architecture, software is divided into several layers, and eachlayer has clear roles and tasks. The layers communicate with each otherthrough a software interface. In some embodiments, the Android system isdivided into four layers from top to bottom an application programlayer, an application program framework layer, an Android runtime(Android runtime) and a system library, and a kernel layer. Theapplication program layer may include a series of application programpackages.

As shown in FIG. 2B, the application program packages may includeapplication programs such as camera, gallery, calendar, calls, map,navigation, WLAN, Bluetooth, music, video, SMS messages, and a desktoplauncher (Launcher) application. For ease of description, an applicationprogram is referred to as an application for short below. Applicationsin the electronic device may be native applications, or may bethird-party applications. This is not limited in this embodiment of thisapplication.

The application program framework layer provides an applicationprogramming interface (application programming interface, API) and aprogramming framework for an application program at the applicationprogram layer. The application program framework layer includes somepredefined functions.

As shown in FIG. 2B, the application program framework layer may includea window manager service (window manager service, VMS), an activitymanager service (activity manager service, AMS), an input managerservice (input manager service, IMS), a content provider, a view system,a phone manager, a resource manager, a notification manager, and thelike.

The window manager service is configured to manage a window program. Thewindow manager may obtain a size of a display screen, determine whetherthere is a status bar, perform screen locking, take a screenshot, andthe like.

The activity manager service (activity manager service, AMS) isresponsible for managing activities, and is responsible for start,switching, scheduling of components, management and scheduling ofapplication programs, and other work.

The input manager service (input manager service, IMS) may be configuredto: perform processing such as translation and encapsulation on anoriginal input event, to obtain an input event containing moreinformation, and send the input event to the window manager service. Thewindow manager service stores an area that is of each applicationprogram and that can be tapped (for example, a control), locationinformation of a focus window, and the like. Therefore, the windowmanager service can correctly distribute the input event to a specifiedcontrol or focus window.

The content provider is configured to: store and obtain data, and enablethe data to be accessible by an application program. The data mayinclude a video, an image, audio, calls that are made and answered, abrowsing history and a bookmark, a phone book, and the like.

The view system includes visual controls, for example, a control fordisplaying a text and a control for displaying an image. The view systemmay be configured to construct an application program. A displayinterface may include one or more views. For example, a displayinterface including an SMS message notification icon may include a textdisplay view and an image display view.

The phone manager is configured to provide a communication function ofthe electronic device 100, for example, management of a call status(including connected, hang up, and the like).

The resource manager provides application programs with variousresources such as a localized character string, an icon, an image, alayout file, and a video file.

The notification manager enables an application program to displaynotification information in a status bar, and may be configured toconvey a notification type message. The notification manager mayautomatically disappear after a short pause without requiring a userinteraction. For example, the notification manager is configured tonotify download completion and provide a message alert. The notificationmanager may alternatively provide a notification that appears in a topstatus bar of the system in a form of a graph or a scroll bar text, forexample, a notification of an application program running in abackground, or may provide a notification that appears on a screen in aform of a dialog box. For example, text information is displayed in thestatus bar, an alert tone is provided, the electronic device vibrates,or an indicator light flashes.

The Android runtime includes a core library and a virtual machine. TheAndroid runtime is responsible for scheduling and management of theAndroid system.

The core library includes two parts: one part is a performance functionthat needs to be called by a java language, and the other part is anAndroid core library.

The application program layer and the application program frameworklayer run in the virtual machine. The virtual machine executes javafiles of the application program layer and the application programframework layer as binary files. The virtual machine is configured toimplement functions such as object lifecycle management, stackmanagement, thread management. security and exception management, andgarbage collection.

The system library may include a plurality of function modules, such asa surface manager (surface manager), a media library (Media Libraries),a three-dimensional graphics processing library (for example, OpenGLES), and a 2D graphics engine (for example, SGL).

The surface manager is configured to manage a display subsystem, andfuse 2D and 3D layers for a plurality of application programs.

The media library supports playback and recording of audio and videos ina plurality of commonly used formats, and supports static image filesand the like. The media library can support a plurality of audio andvideo encoding formats, such as MPEG-4, H.264, MP3, AAC, AMR, JPG, andPNG.

The three-dimensional graphics processing library is configured toimplement three-dimensional graphics drawing, image rendering,composition, layer processing, and the like.

The 2D graphics engine is a drawing engine for 2D drawing.

The kernel layer is a layer between hardware and software. The kernellayer may include a display driver, an input/output device driver (forexample, a keyboard, a touchscreen, an earphone, a loudspeaker, and amicrophone), a device node, a camera driver, an audio driver, a sensordriver, and the like. A user performs an input operation by using aninput device. The kernel layer may generate a corresponding originalinput event based on the input operation, and store the original inputevent into the device node.

Display solutions provided in this embodiment of this application areimplemented based on a freeform window (freeform) feature and amulti-window multi-task infrastructure of Google. In this embodiment ofthis application, referring to FIG. 2B, the application programframework layer may further include an activity start policy manager(activity start policy manager, ASPM), configured to determineinformation such as a startup parameter of an activity (Activity).

Based on the foregoing software modules, a display procedure provided inan embodiment of this application may be shown in FIG. 3. Specifically,the input/output device driver may detect an input event of a user, forexample, an input event in which a user starts an application by tappingan icon of the application, or an input event in which a user opens aninterface by using a voice instruction. The input/output device driverreports the input event of the user to the IMS. The IMS distributes theinput event to a corresponding application. The application calls astartActivity interface in the AMS to start an activity corresponding tothe input event. The AMS requests to obtain a startup parameter from theASPM. The ASPM determines the startup parameter and returns the startupparameter to the AMS. The AMS calls a WMS interface based on the startupparameter. The WMS draws, based on the startup parameter, a windowcorresponding to the activity, and calls the display driver to displayan interface.

After obtaining the startup parameter, the WMS may determine, based onthe startup parameter, whether an activity window matching the startupparameter exists in a background. If such an activity window exists, theWMS sets the background activity window matching the startup parameterto be visible. If such an activity window does not exist, the WMScreates an activity window based on the startup parameter and drawswindow content, and calls the display driver to display the drawn windowcontent, to present the interface to the user.

Specifically, the ASPM may determine the startup parameter of theactivity based on an activity start scenario. The startup parameter ofthe activity includes an activity window display manner, an activitywindow start location, a stack for starting the activity window, andinformation such as a width and a height in an application startconfiguration. The display manner includes full-screen display and areadisplay. The activity start scenario includes: Whether the activity isstarted from a desktop, started from a current application, or startedfrom another application, whether the electronic device is currently ina landscape orientation state or a portrait orientation state, whetherthe electronic device is currently in a full-screen display manner or anarea display manner, and the like.

If the electronic device has stored a startup parameter of the activity(for example, a startup parameter that is set when an applicationprogram is developed, or a corresponding startup parameter when theelectronic device is in a portrait mode), when the startup parameterdetermined by the ASPM is different from the stored startup parameter,the ASPM may modify the previously stored startup parameter to thestartup parameter currently determined by the ASPM. For example, if thearea display manner is used, in the startup parameter determined by theASPM, the window start location may be a location of an i^(th) displayarea on a touchscreen when the electronic device is in a landscape mode.For example, when the touchscreen includes a first display area and asecond display area, the window start location may be the first displayarea and the second display area. The stack (Stack) for starting thewindow is a freeform stack (that is, an Android native multi-windowdedicated stack stack). The information such as the width and the heightin the application start configuration may be width information andheight information of the i^(th) display area. For another example, ifthe full-screen display manner is used, in the startup parameterdetermined by the ASPM, the window start location is a full screen. Thestack (Stack) for starting the window may be a full-screen stack(fullscreen stack). The information such as the width and the height inthe application start configuration may be width information and heightinformation of the display screen in a full screen mode.

The following uses an example for detailing the technical solutionsprovided in the embodiments of this application. In the example, theelectronic device is a tablet computer (referred to as a tablet forshort below), a landscape orientation state is the state shown in (a) inFIG. 1, a portrait orientation state is the state shown in (c) in FIG.1, and a display screen is divided into a first display area and asecond display area when the tablet is in the landscape orientationstate.

Referring to FIG. 4A, a display method provided in an embodiment of thisapplication may include the following steps.

401A. The tablet displays a desktop in full screen in the landscapeorientation state.

When the tablet is in the landscape orientation state, a horizontallength of the display screen of the tablet is greater than a verticallength of the display screen, and the display screen is horizontalbar-shaped. Referring to FIG. 5A, the tablet may display a desktop 500in full screen in a landscape orientation state.

As shown in FIG. 5A, the desktop 500 may include a status bar 503 andtime and weather widgets, and may further include icons of a pluralityof application programs, such as an icon 502 of Toutiao, an icon 505 ofTaobao, an icon 502 of Weibo, and an icon 501 of WeChat. The status bar503 may include time, a signal strength (for example, a Wi-Fi icon), acurrent battery level, and the like. In addition, it can be understoodthat in some other embodiments, the status bar 503 may further include aBluetooth icon, an alarm clock icon, an external device icon, and thelike. It can also be understood that in some other embodiments, thedesktop 500 may further include a dockbar, and the dockbar may includeicons of common application programs (application, App), and the like.

402. The tablet detects a first operation.

The first operation is an operation in which a user indicates to start afirst application. The first operation may be a gesture operation of theuser on the desktop, or may be a voice operation of the user. Thegesture operation may be a touch gesture operation or an air gestureoperation. The touch gesture operation may be an operation such as tap,double tap, touch and hold, or heavy press (that is, a strength of pressis relatively great).

For example, the first application is a Toutiao application (a news typeapplication), and the first operation may be an operation of the userfor tapping the icon 502 of Toutiao on the desktop, or the firstoperation may be an operation of the user for starting the Toutiaoapplication by using a voice instruction.

403. The tablet displays, in the landscape orientation state, a firstinterface of the first application in the first display area of thedisplay screen in response to the first operation.

An aspect ratio of the first display area differs slightly from a presetratio. For example, an absolute value of a difference between the aspectratio of the first display area and the preset ratio is less than orequal to a preset value 2. In other words, the aspect ratio of the firstdisplay area falls within a range [the preset ratio−the preset value 2,the preset ratio+the preset value 2]. The preset value 2 may berelatively small, for example, may be 0.7. A specific value of thepreset value 2 may be set depending on a requirement of an actualapplication scenario. The preset value 2 may be set by the user, or maybe set by a system by default. For example, the preset ratio may be aconventional aspect ratio of a display screen such as 16:9, 16:8, or18:9 when a mobile phone is in a portrait mode, or the preset ratio maybe a conventional aspect ratio of a display screen such as 16:10 when atablet is in a portrait mode.

When an aspect ratio of the display screen is the preset ratio, thetablet can normally display an interface of an application in an entiredisplay area of the display screen. When the absolute value of thedifference between the aspect ratio of the first display area and thepreset ratio is less than or equal to the preset value 2, that is, whenthe aspect ratio of the first display area differs slightly from thepreset ratio, the tablet can also normally display an interface of anapplication in the first display area. In other words, the tablet cannormally display the first interface of the first application in thefirst display area of the display screen in response to the operation inwhich the user indicates to start the first application.

For example, referring to FIG. 5B, the tablet may display a firstinterface 507 in a first display area 506 of the display screen inresponse to the operation of the user for tapping the icon 502 ofToutiao in FIG. 5A.

Optionally, the first interface may be a home page of the firstapplication. In other words, the tablet normally displays the home pageof the first application in the first display area in response to theoperation of the user for starting the first application. For example,the first interface 507 shown in FIG. 5B is a home page of Toutiao(application).

Optionally, that the tablet displays the home page of the firstapplication in the first display area in response to the operation ofthe user for starting the first application includes: After displayingan advertising page of the first application in the first display area,the tablet displays the home page of the first application in the firstdisplay area. For example, the tablet displays the advertising page ofthe first application in the first display area; and after displayduration of the advertising page is greater than or equal to presetduration, the tablet stops displaying the advertising page, and displaysthe home page of the first application in the first display area.Alternatively, the tablet displays the advertising page of the firstapplication in the first display area; and after detecting an operationin which the user indicates to skip the advertising page, the tabletstops displaying the advertising page, and displays the home page of thefirst application in the first display area.

When the tablet displays, in the landscape orientation state, the firstinterface of the first application in the first display area of thedisplay screen in response to the first operation, the tablet does notdisplay an interface of the first application in the second displayarea. Specifically, a pattern (for example, a wallpaper pattern) may bedisplayed in the second display area; a desktop background may bedisplayed in the second display area, that is, a part of the desktopbackground is presented in the second display area; or the seconddisplay area may be blank.

404. The tablet detects a second operation of the user on the firstinterface in the first display area, where the second operation is usedto open a second interface of the first application.

The second operation is a touch operation of the user on the firstinterface in the first display area, and the second operation is used toindicate to open the second interface of the first application. Forexample, the second operation may be an operation of the user fortapping a piece of information (for example, tapping “Strong typhoon‘Mangkhut’ on the way”) on the home page of Toutiao shown in FIG. 5B.

405. The tablet displays the second interface in the second display areain response to the second operation.

An aspect ratio of the second display area differs slightly from apreset ratio. For example, an absolute value of a difference between theaspect ratio of the second display area and the preset ratio is lessthan or equal to the preset value 2. In other words, the aspect ratio ofthe second display area falls within a range [the preset ratio−thepreset value 2, the preset ratio+the preset value 2]. In this way, thetablet can normally display the second interface of the firstapplication in the second display area of the display screen.

For example, in response to the operation of the user for tapping thepiece of information on the home page of Toutiao shown in FIG. 5B, thetablet may display a second interface 509 shown in FIG. 5C in a seconddisplay area 508, where the second interface 509 is a detail page of theinformation tapped by the user. In this case, content of the firstdisplay area 506 is basically unchanged. Alternatively, in the firstdisplay area 506, a display effect of content tapped by the user ischanged. For example, one or more of a color, brightness, a contrast, agrayscale, a display form, or the like of the information content tappedby the user are changed, to indicate that the piece of information iscurrently opened or has been opened.

In another embodiment, before step 402, the method may further includestep 401B used as an alternative step of step 401A.

401B. The tablet displays the first interface of the first applicationin full screen in the portrait orientation state.

Based on step 401B, the first operation in step 402 may be an operationof the user for switching the tablet from the portrait orientation stateto the landscape orientation state. In other words, the tablet hasopened the first interface of the first application in the portraitorientation state. For example, the first application is the Toutiaoapplication. For a schematic diagram of displaying the first interfaceof the first application in full screen in the portrait orientationstate, refer to FIG. 5D. Then, m response to the operation of the userfor switching the tablet from the portrait orientation state to thelandscape orientation state (for example, an operation in which the userrotates the tablet to switch from a state shown in FIG. 5D to the stateshown in (a) in FIG. 1), the tablet displays the first interface in thefirst display area of the display screen in the landscape orientationstate in step 403, as shown in FIG. 5B.

It can be learnt that the tablet can normally display differentinterfaces of the first application in the first display area and thesecond display area in the landscape orientation state. In addition, thetablet displays a plurality of interfaces of the first application in aplurality of display areas in the landscape orientation state. In thisway, a feature of a long horizontal length of the tablet in thelandscape orientation state can be fully utilized to display theplurality of interfaces to the user on the display screen, so as toprovide a larger amount of information for the user.

In this embodiment of this application, in the landscape orientationstate, the display screen of the tablet may include a plurality ofdisplay areas, where aspect ratios of the display areas differ slightlyfrom the preset ratio. Because the tablet can normally display aninterface of an application on the display screen whose aspect ratio isthe preset ratio, the tablet can also normally display an interface ofan application in a display area whose aspect ratio differs slightlyfrom the preset ratio. Therefore, in the landscape orientation state,the tablet can normally display an interface of an application in adisplay area divided from the display screen.

Optionally, when the user faces the display screen, the first displayarea of the display screen is located on the left of the second displayarea of the display screen. In other words, the tablet displays, on theleft side, the first interface (for example, the home page of the firstapplication) that is displayed after the first application is started.This can better conform to a use habit of the user.

Optionally, when the user faces the display screen, the first displayarea of the display screen is located on the right of the second displayarea of the display screen. In other words, the tablet displays, on theright side, the first interface (for example, the home page of the firstapplication) that is displayed after the first application is started.

It should be noted that the preset ratio may include at least one ratio,and a difference between an aspect ratio of each display area of thedisplay screen and any one of the preset ratio is less than or equal tothe preset value 2.

In this embodiment of this application, in the landscape orientationstate, aspect ratios and sizes of different display areas included inthe display screen may be identical or different. For example, presetratios include 16:9 and 16:8. Referring to (a), (b), or (c) in FIG. 6,an aspect ratio and a size of a first display area 601 are the same asthose of a second display area 602, both the aspect ratios of the firstdisplay area 601 and the second display area 602 are 16:9, and adifference between the aspect ratio and the preset ratio 16:9 is 0. Itshould be noted that, when the first display area 601 and the seconddisplay area 602 cannot fully occupy the display screen, referring to(a) in FIG. 6, space may be left between the first display area 601 andthe second display area 602; or referring to (b) in FIG. 6, space may beleft on two sides of the first display area 601 and the second displayarea 602; or referring to (c) in FIG. 6, space may be left between thefirst display area 601 and the second display area 602 and on two sidesof the first display area 601 and the second display area 602. In FIG.6, parts filled with oblique lines represent space between the displayareas.

In some embodiments, for an aesthetic purpose, a pattern (for example, awallpaper pattern) may be displayed in the space beside the displayareas; or a desktop background may be displayed in the space, that is, apart of the desktop background is presented in the space.

For another example, preset ratios include 16:9 and 16:8. Referring to(d) in FIG. 6, an aspect ratio and a size of a first display area 601are different from those of a second display area 602, the aspect ratioof the first display area 601 is 16:8, and a difference between theaspect ratio and the preset ratio 16:8 is 0 and the different is lessthan the preset value 2; the aspect ratio of the second display area 602is 4:3, and a difference between the aspect ratio and the preset ratio16:9 is less than the preset value 2; vertical lengths of the firstdisplay area 601 and the second display area 602 are equal, andhorizontal lengths of the first display area 601 and the second displayarea 602 are unequal.

For aesthetic and neat purposes, and to fully utilize the verticallength of the display screen, the vertical lengths of the first displayarea and the second display area are equal to the vertical length of thedisplay screen of the tablet in the landscape orientation state. In thisway, display heights of different interfaces of the first applicationare the same when the different interfaces are displayed in the firstdisplay area and the second display area.

It can be understood that the vertical lengths of the first display areaand the second display area may alternatively be less than the verticallength of the display screen in the landscape orientation state.

In some embodiments, the plurality of display areas included in thedisplay screen when the tablet is in the landscape orientation state maybe preset. For example, the preset ratio is 16:9, the preset value 2 is0.7, the aspect ratio of the display screen is 10:16 when the tablet isin a landscape mode, the display screen includes the first display areaand the second display area, and aspect ratios of the first display areaand the second display area both 16:12 (that is, 4:3). In this case, anabsolute value of a difference between 16:12 and the preset ratio 16:9is less than the preset value 2.

In some other embodiments, the plurality of display areas included inthe display screen when the tablet is in the landscape orientation statemay be set by the user. For example, as shown in FIG. 7, a display areasetting control is displayed on a setting interface 701 (the settinginterface may be displayed in the portrait orientation state or may bedisplayed in the landscape orientation state) of the tablet. The usermay set the aspect ratio of the first display area and the aspect ratioof the second display area, or the user may select the aspect ratio ofthe first display area and the aspect ratio of the second display areafrom the setting interface.

For another example, as shown in FIG. 8(a), a display area quantitysetting control 802 and a display area scope setting control 803 in thelandscape orientation state are displayed on a setting interface 801 ofthe tablet. After the user sets a display area quantity to 2 and tapsthe control 803, as shown in FIG. 8(b), the tablet may prompt the userto set a scope of the first display area. The user may perform a dragoperation on the display screen to set the scope of the first displayarea. After the user stops the drag operation, as shown in FIG. 8(c),the tablet may display a control 804 for determining the scope of thefirst display area and a control 805 for setting cancelation. After theuser taps the control 804, referring to FIG. 8(d), the tablet may promptthe user to set a scope of the second display area.

For still another example, after the user sets the display area quantityto 2 on the setting interface 801 and taps the control 803, as shown inFIG. 9, a first boundary 901 and a second boundary 902 are displayed ona setting interface of the tablet. The user may drag the first boundaryto set a size and an aspect ratio of the first display area, and dragthe second boundary to set a size and an aspect ratio of the seconddisplay area. When the absolute value of the difference between theaspect ratio of the first display area and the preset ratio is greaterthan the preset value 2, the tablet may notify the user that ahorizontal length of the first display area is excessively wide ornarrow, so that the aspect ratio of the first display area that is setby the user differs slightly from the preset ratio. Likewise, when theabsolute value of the difference between the aspect ratio of the seconddisplay area and the preset ratio is greater than the preset value 2,the tablet may notify the user that a horizontal length of the seconddisplay area is excessively wide or narrow, so that the aspect ratio ofthe second display area that is set by the user differs slightly fromthe preset ratio.

For yet another example, as an alternative solution of FIG. 9, a firstboundary, a second boundary, a third boundary, and a fourth boundary aredisplayed on a setting interface of the tablet. The user may drag thefirst boundary and the second boundary to set a size and an aspect ratioof the first display area, and drag the third boundary and the fourthboundary to set a size and an aspect ratio of the second display area.

Certainly, the user may alternatively set the display areas included inthe display screen in the landscape orientation state in another manner.This is not limited in this embodiment of this application.

In this embodiment of this application, different interfaces of oneapplication may have a higher level and a lower level. The tablet maydisplay a to-be-displayed interface in a display area of the displayscreen based on a level relationship between a to-be-displayed interfaceand a displayed interface.

For example, different interfaces of one application may correspond to asame activity (Activity), or may correspond to different activities.When different interfaces correspond to a same activity, theseinterfaces may correspond to a same level. When different interfacescorrespond to different activities, these interfaces correspond todifferent levels. In response to an operation of the user on aninterface, the interface may be used to call another interface. When thecalling interface and the called interface correspond to a sameactivity, the calling interface and the called interface may correspondto a same level. When the calling interface and the called interfacecorrespond to different activities, the called interface is at a levellower than the calling interface.

For example, the calling interface may be an interface 507 in FIG. 5C,the called interface may be the interface 509 in FIG. 5C, the interface509 and the interface 507 correspond to different activities, and theinterface 509 is at a level lower than the interface 507.

In a technical solution, a process of performing calling betweeninterfaces by the tablet may be implemented by using a first-in last-outstack. For example, when the tablet calls and displays an interface 1,the interface 1 is pushed into the stack; when the interface 1 is usedto call an interface 2, the interface 2 is pushed into the stack; andwhen the user makes the current interface 2 return to the interface 1,the current interface 2 is popped from the stack. In addition, whendetecting a return operation of the user on a current interface (forexample, an operation of the user for tapping a return control on thecurrent interface), the tablet returns, in response to the operation, toan interface that is used to proactively call the current interfacepreviously.

For another example, the tablet presets a level relationship betweendifferent activities, where a higher-level activity corresponds to ahigher-level interface, and a lower-level activity corresponds to alower-level interface. For example, in the Toutiao application, activitylevels corresponding to “follow”, “recommend”, “hotspot”, “video”, and“toutiaohao” information list interfaces are higher than an activitylevel corresponding to an information detail page (the detail page is aninterface), and levels of the “follow”. “recommend”, “hotspot”, “video”,and “toutiaohao” information list interfaces are also higher than alevel of the information detail page.

Based on the level relationship between interfaces, after step 404, step405 may specifically include: if the second interface is an interface ata level lower than the first interface, the tablet displays the secondinterface in the second display area. In other words, the tabletdisplays, in the second display area, the interface at a level lowerthan the first interface. For example, when the user taps a piece ofinformation (for example, taps “Strong typhoon ‘Mangkhut’ on the way”)on the home page of Toutiao shown in FIG. 5B, a level of a detail pageof the piece of information is lower than that of the home page ofToutiao. The tablet displays the detail page of the piece of informationin the second display area. Alternatively, after step 404, the methodmay further include: If the second interface and the first interfacecorrespond to a same level, the tablet displays the second interface inthe first display area. In other words, the tablet displays, in thefirst display area, the interface at the same level as the firstinterface. For example, when the user taps “hotspot” in FIG. 5B, thetablet displays a “hotspot” interface in the first display area.

Based on the level relationship between interfaces, after step 405 isperformed, when the tablet receives again an operation of the user foropening, on the first interface, another interface of the firstapplication, the tablet may display a to-be-displayed interface in adisplay area of the display screen based on the level relationshipbetween a to-be-displayed interface and a displayed interface.

For example, after step 405 is performed, the tablet displays, in thefirst display area. another interface that is of the first applicationand that corresponds to a same level as the first interface of the firstapplication, and displays an interface at a level lower than the firstinterface in the second display area. Specifically, referring to FIG.4B, after step 405, the method may further include the following steps.

406. The tablet detects a third operation performed on the firstinterface, where the third operation is used to open a third interfaceof the first application.

407. If the third interface and the first interface correspond to a samelevel, in response to the third operation, the tablet displays the thirdinterface in the first display area and still displays the secondinterface in the second display area.

For example, based on FIG. 5C, the first interface in the first displayarea is the interface 507, the interface in the second display area isthe interface 509, the third operation may be an operation of the userfor tapping a “hotspot” control on the first interface 507 in FIG. 5C,and the third interface may be a “hotspot” information list interface.The “hotspot” information list interface and the interface 507correspond to a same activity and are at a same level. In this case,referring to FIG. 0A, the tablet may update the interface 507 (that is,the first interface) to a “hotspot” information list interface 1001 inthe first display area and still display the interface 509 (that is, thesecond interface) in the second display area.

In some embodiments, one activity may correspond to one window, anddifferent interfaces corresponding to the activity may be referred to assub-windows or fragments (fragment) of the window.

408. If the third interface is an interface at a level lower than thefirst interface, in response to the third operation, the tablet displaysthe third interface in the second display area and still displays thefirst interface in the first display area.

For example, based on FIG. 5C, the first interface in the first displayarea is the interface 507, the interface in the second display area isthe interface 509, the third operation may be an operation of the userfor tapping another piece of information (for example, “*** gave animportant instruction on the first ‘Chinese Doctor's Day’”) on theinterface 507 in FIG. 5C, and the third interface may be a detail pageof “*** gave an important instruction on the first ‘Chinese Doctor'sDay’” (the detail page is an interface). The detail page of “*** gave animportant instruction on the first ‘Chinese Doctor's Day’” and the firstinterface 507 correspond to different activities and correspond todifferent levels, the interface 507 is used to call the detail page of“*** gave an important instruction on the first ‘Chinese Doctor's Day’”,and the detail page of “*** gave an important instruction on the first‘Chinese Doctor's Day’” is an interface at a level lower than theinterface 507. In this case, referring to FIG. 10B, the tablet maydisplay a detail page 1002 of “*** gave an important instruction on thefirst ‘Chinese Doctor's Day’” in the second display area and stilldisplay the interface 507 (that is, the first interface) in the firstdisplay area.

In the solution described in steps 401A/401B to 408, when the firstinterface is the home page of the first application, the first displayarea is used to display only the home page of the first application anda page at a same level as the home page, and the second display area isused to display another interface of the first application. This can beconvenient for the user to frequently perform operations on the homepage and the page at the same level as the home page, without a need tofrequently call the home page or the page at the same level as the homepage to perform an operation. In the display method, the firstapplication may be a news information type application, for example, aToutiao application. Sohu News, or Netease News; or may be anapplication that may include interfaces with two levels (or twoactivities), or the like.

For example, as shown in FIG. 5C and FIG. 10B, the first application isToutiao, the first display area is located on the left of the seconddisplay area, and the first display area may be used to display the homepage of Toutiao (for example, an interface displayed in the display areaon the left side in FIG. 5C) or a page that is at a same level as thehome page of Toutiao (for example, an interface that is displayed by thetablet after the user taps the “hotspot” control on the interfacedisplayed in the left-side area in FIG. 5C). This is convenient for theuser to frequently tap information on the home page of Toutiao or thepage that is at the same level as the home page in the first displayarea, so as to view details of different information in the seconddisplay area.

In addition, if the third interface is an interface at a level higherthan the first interface, in response to the third operation, the tabletdisplays the third interface in the first display area and displays thefirst interface in the second display area; or in response to the thirdoperation, the tablet displays the third interface in the first displayarea and still displays the second interface in the second display area.

Based on the level relationship between interfaces, after step 405 orstep 408 is performed, when the tablet receives again an operation ofthe user for opening, on the second interface, another interface of thefirst application, the tablet may display a to-be-displayed interface ina display area of the display screen based on the level relationshipbetween a to-be-displayed interface and a displayed interface.

For example, after step 405 or step 408 is performed, when the tabletdetects an operation that is performed by the user on the secondinterface and that is used to indicate to open a new interface of thefirst application, regardless of whether the new interface and thesecond interface correspond to a same level or the new interface is aninterface at a level lower than the second interface, the tabletdisplays the new interface in the second display area in response to theoperation. Specifically, after step 405 or step 408, the method mayfurther include the following steps.

409. The tablet detects a fourth operation performed on the secondinterface, where the fourth operation is used to open a fourth interfaceof the first application.

410. If the fourth interface and the second interface correspond to asame level or the fourth interface is an interface at a level lower thanthe second interface, in response to the fourth operation, the tabletdisplays the fourth interface in the second display area and keeps theinterface displayed in the first display area unchanged.

That the interface displayed in the first display area is unchangedmeans: If the first interface is displayed in the first display areabefore the tablet detects the fourth operation, when the fourthinterface is displayed in the second display area in response to thefourth operation, the first interface is still displayed in the firstdisplay area; or if the third interface is displayed in the firstdisplay area before the tablet detects the fourth operation, when thefourth interface is displayed in the second display area in response tothe fourth operation, the third interface is still displayed in thefirst display area.

For example, referring to FIG. 11A, the first interface may be a homepage 1101 of Taobao, the second interface may be a hat list interface1102 displayed after the user searches for a hat on the first interface,the first interface is displayed in the first display area, and thesecond interface is displayed in the second display area.

Based on FIG. 11A, the fourth operation may be an operation of the userfor tapping a hat link on the second interface in FIG. 11A, the fourthinterface may be a detail page of the hat link (the detail page is aninterface), and the detail page of the hat link is an interface at alevel lower than the hat list interface 1102. In this case, referring toFIG. 11B, the tablet may display a detail page 1103 (that is, the fourthinterface) of the hat link in the second display area and still displaythe home page 1101 (that is, the first interface) of Taobao in the firstdisplay area.

In the solution described in steps 401A/401B to 410, when the firstinterface is the home page of the first application, the first displayarea is used to display only the home page of the first application anda page at a same level as the home page, and the second display area isused to display another interface of the first application. This can beconvenient for the user to frequently perform operations on the homepage and the page at the same level as the home page, without a need tofrequently call the home page or the page at the same level as the homepage to perform an operation.

For another example, after step 405 or step 408, the interface displayedby the tablet in the second display area is the interface at a levellower than the interface displayed in the first display area. In thisway, the user can browse content of interfaces with two adjacent levelson the display screen. This is convenient for the user to make contrastand perform an operation between the content of the interfaces with thetwo adjacent levels. Specifically, after step 409, the method mayfurther include the following steps.

411. If the fourth interface and the second interface correspond to asame level, in response to the fourth operation, the tablet displays thefourth interface in the second display area and keeps the interfacedisplayed in the first display area unchanged.

For example, based on FIG. 11A, the first interface may be the home page1101 of Taobao, the second interface may be the hat list interface 1102,the fourth operation may be an operation of the user for tapping a“Tmall” control on the interface 1102 in FIG. 11A, and the fourthinterface may be a hat list interface of “Tmall”. The tablet may displaythe hat list interface of “Tmall” in the second display area and stilldisplay the interface 1101 in the first display area.

412. If the fourth interface is an interface at a level lower than thesecond interface, in response to the fourth operation, the tabletdisplays the fourth interface in the second display area.

413. The tablet displays the second interface in the first display areain response to the fourth operation.

For example, based on FIG. 11A, the first interface may be the home page1101 of Taobao, the second interface may be the hat list interface 1102,the fourth operation may be an operation of the user for tapping a hatlink on the interface 1102 in FIG. 11A, the fourth interface may be adetail page of the hat link, and the detail page of the hat link is aninterface at a level lower than the hat list interface 1102. In thiscase, referring to FIG. 11C, the tablet may display a detail page 1103(that is, the fourth interface) of the hat link in the second displayarea and update the home page 1101 (that is, the first interface) ofTaobao in the first display area to the hat list interface 1102 (thatis, the second interface). In this way, the user can simultaneously viewpictures and links of various hats in the first display area and apicture and detailed information of one type of hat that are openedcurrently in the second display area. This is convenient for the user tocompare materials, prices, places of production, and othercharacteristics of different hats, so that the user knows and purchasesa hat conveniently.

For example, in this display manner, the first application may be ashopping type application, for example, Taobao. Amazon shopping, or JDshopping; or may be an application that may include interfaces withthree or more levels (or a plurality of activities), or the like.

In some embodiments, the tablet stores a correspondence betweendifferent display solutions and applications. When the tablet starts anapplication, an interface corresponding to the application may bedisplayed based on a display manner corresponding to the tablet in thecorrespondence. For example, the display solution (referred to as adisplay solution 1) described in steps 401 to 410 may correspond toapplications such as Toutiao, Sohu News, and Netease News. The displaysolution (referred to as a display solution 2) described in steps 401 to407 and steps 411 to 413 corresponds to applications such as Taobao,Amazon shopping, and JD shopping. In some other embodiments, the usermay alternatively proactively set a correspondence between applicationsand display solutions.

After step 405, step 408, step 410, or step 413 is performed, when thetablet detects a fifth operation that is performed by on the secondinterface and that is used to open a fifth interface of the firstapplication, if the fifth interface is an interface at a level higherthan the second interface, in response to the fifth operation, thetablet may perform one of the following display solutions.

The fifth interface is displayed in the second display area and theinterface displayed in the first display area is unchanged. For example,based on FIG. 11B, the second interface in the second display area isthe interface 1103, the interface in the first display area is theinterface 1101, the fifth operation is an operation of the user fortapping a return control (for example, a back back key) on the interface1103, and the fifth interface is the interface 1102. In response to thefifth operation, the tablet displays the interface 1102 in the seconddisplay area and still displays the interface 1101 in the first displayarea.

Alternatively, the tablet displays the fifth interface in the firstdisplay area and keeps the interface displayed in the second displayarea unchanged. For example, based on FIG. 11B, the second interfacedisplayed in the second display area is the interface 1103, theinterface displayed in the first display area is the interface 1101, thefifth operation is an operation of the user for tapping a return controlon the interface 1103, and the fifth interface is the interface 1102. Inresponse to the fifth operation, the tablet displays the interface 1102in the first display area and still displays the interface 1103 in thesecond display area.

Alternatively, the tablet stops displaying the second interface in thesecond display area. where content displayed in the second display areais the desktop, that is, a part of the desktop background is presentedin the second display area; and still displays the first interface inthe first display area. For example, based on FIG. 11A, the secondinterface in the second display area is the interface 1102, theinterface in the first display area is the interface 1101, the fifthoperation is an operation of the user for tapping a return control onthe interface 1103, and the fifth interface is the interface 1101. Inresponse to the fifth operation, the tablet still displays the interface1101 in the first display area, and displays the desktop in the seconddisplay area, that is, a part of the desktop background is presented inthe second display area.

When the level relationship between interfaces is not considered, afterstep 405, the method may further include the following several displaysolutions.

(1) The tablet detects a sixth operation performed on the firstinterface, where the sixth operation is used to open a sixth interfaceof the first application. In response to the sixth operation, the tabletdisplays the sixth interface in the second display area and stilldisplays the first interface in the first display area. In other words,the tablet always displays the first interface of the first applicationin the first display area, and displays, in the second display area,another interface that is of the first application and that is called byusing the first interface. In this way, when the first interface is thehome page of the first application, the home page can be kept beingdisplayed in the first display area. This is convenient for the user tofrequently perform operations on the home page.

For example, based on FIG. 5C, the first interface in the first displayarea is the interface 507, and the second interface in the seconddisplay area is the interface 509. If detecting an operation of the userfor tapping the “hotspot” control on the interface 507, the tabletdisplays the “hotspot” information list interface in the second displayarea. If detecting an operation of the user for tapping a piece ofinformation on the interface 507, the tablet displays detailedinformation linked to the piece of information in the second displayarea.

(2) The tablet detects a seventh operation performed in the firstdisplay area or the second display area, where the seventh operation isused to open a seventh interface of the first application. In responseto the seventh operation, the tablet displays the sixth interface in thesecond display area and still displays the first interface in the firstdisplay area. In other words, the tablet always displays the firstinterface of the first application in the first display area, anddisplays, in the second display area, an interface that is of the firstapplication and that is other than the first interface. In this way,when the first interface is the home page of the first application, thehome page can be kept being displayed in the first display area. This isconvenient for the user to frequently perform operations on the homepage.

For example, based on FIG. 11A, the interface in the first display areamay be the home page 1101 of Taobao, and the interface in the seconddisplay area may be the hat list interface 1102. If detecting anoperation that is performed by the user on the interface 1101 in thefirst display area or the interface 1102 in the second display area andthat is used to open another interface of the first application, thetablet displays the another interface in the second display area andkeeps displaying the interface 1101 in the first display area.

(3) The tablet detects an eighth operation performed in the firstdisplay area, where the eighth operation is used to open an eighthinterface of the first application; in this case, in response to theeighth operation, the tablet displays the eighth interface in the seconddisplay area and still displays the first interface in the first displayarea. The tablet detects a ninth operation performed in the seconddisplay area, where the ninth operation is used to open a ninthinterface of the first application; in this case, in response to theninth operation, the tablet displays the ninth interface in the firstdisplay area and still displays the second interface in the seconddisplay area. In other words, the tablet displays, in the second displayarea, another interface that is of the first application and that iscalled by using the interface in the first display area; and the tabletdisplays, in the first display area, another interface that is called byusing the interface in the second display area. The tablet displaysanother interface that is called by using an interface in a displayarea, in another display area. This can be convenient for the user tocontrast a calling interface and a called interface.

For example, based on FIG. 11A, the interface in the first display areamay be the home page 1101 of Taobao, and the interface in the seconddisplay area may be the hat list interface 1102. If detecting anoperation that is performed by the user on the interface 1101 in thefirst display area and that is used to open another interface of thefirst application, the tablet displays the another interface in thesecond display area and keeps displaying the interface 1101 in the firstdisplay area. If detecting an operation that is performed by the user onthe interface 1102 in the second display area and that is used to openanother interface of the first application, the tablet displays theanother interface in the first display area and keeps displaying theinterface 1102 in the second display area.

(4) The tablet detects an eighth operation performed in the firstdisplay area, where the eighth operation is used to open an eighthinterface of the first application; in this case, in response to theeighth operation, the tablet displays the eighth interface in the firstdisplay area and still displays the second interface in the seconddisplay area. The tablet detects a ninth operation performed in thesecond display area, where the ninth operation is used to open a ninthinterface of the first application; in this case, in response to theninth operation, the tablet displays the ninth interface in the seconddisplay area and still displays the first interface in the first displayarea. In other words, the tablet displays, in the first display area,another interface that is of the first application and that is called byusing the interface in the first display area; and the tablet displays,in the second display area, another interface that is called by usingthe interface in the second display area. The tablet still displaysanother interface that is called by using an interface in a displayarea, in the display area. In this way, interfaces that have a callingrelationship are displayed in a same display area.

For example, based on FIG. 11A, the interface in the first display areamay be the home page 1101 of Taobao, and the interface in the seconddisplay area may be the hat list interface 1102. If detecting anoperation that is performed by the user on the interface 1101 in thefirst display area and that is used to open another interface of thefirst application, the tablet displays the another interface in thefirst display area and keeps displaying the interface 1102 in the seconddisplay area. If detecting an operation that is performed by the user onthe interface 1102 in the second display area and that is used to openanother interface of the first application, the tablet displays theanother interface in the second display area and keeps displaying theinterface 1101 in the first display area.

Further, after the tablet exits the first application and returns to thedesktop, if the tablet detects an operation that is performed by theuser on the desktop and that is used to indicate to open a secondapplication, or if the tablet detects an operation of the user forstarting a second application by using a voice instruction, the tabletmay display an interface of the second application in a way in which thetablet displays an interface of the first application. For example,after the tablet displays an interface of the first application, if thetablet returns to the desktop and detects a touch operation that isperformed by the user on the desktop and that is used to indicate tostart the second application, the tablet displays an interface of thesecond application.

In some embodiments, in the solution described in steps 401 to 410, whendetecting an operation that is performed by the user on an interface ofthe first application and that is used to indicate to start the secondapplication, the tablet may display an interface of the secondapplication in the second display area. For example, the firstapplication is Toutiao, and the second application is WeChat. When theuser indicates, on an interface of the Toutiao application, to performsharing by using WeChat, the tablet detects an operation that isperformed by the user on the interface of the Toutiao application andthat is used to indicate to start WeChat, and then the tablet maydisplay an interface of WeChat in the second display area and keepcontent displayed in the first display area unchanged. Afterwards, whenthe tablet exits an interface of the second application displayed in thesecond display area, the tablet may prompt the user to determine whetherto make the tablet return to the first application or stay in the secondapplication. If the user indicates the tablet to return to the firstapplication, the tablet resumes displaying an interface of the firstapplication (the interface of the first application that is displayedbefore an interface of the second application is displayed) in thesecond display area and keeps the content displayed in the first displayarea unchanged. If the user indicates the tablet to stay in the secondapplication, the tablet does not display the interface of the firstapplication any longer, but displays a home page of the secondapplication in the first display area and displays another interface ofthe second application according to steps 404 to 413. Details are notdescribed herein.

In some embodiments, the tablet may display the first interface in adisplay manner selected by the user. Specifically, referring to FIG. 12,step 403 may include the following steps:

1201. The tablet determines whether the first application supportslandscape-mode full-screen display. If the first application does notsupport landscape-mode full-screen display, the tablet performs step1202. If the first application supports landscape-mode full-screendisplay, the tablet performs step 1203.

1202. The tablet displays the first interface of the first applicationin the first display area of the display screen.

1203. The tablet prompts the user to select a display manner, where thedisplay manner includes landscape-mode full-screen display and areadisplay; and then performs step 1204.

1204. The tablet determines the display manner selected by the user. Ifdetecting that the user chooses to use the area display manner, thetablet performs step 1202. If detecting that the user chooses to use thelandscape-mode full-screen display manner, the tablet performs step1205.

1205. The tablet displays the first interface in full screen in thelandscape orientation state.

The area display manner is a manner in which the tablet displays aninterface of an application in a display area of the display screen inthe landscape orientation state and that is provided in this embodimentof this application. In other words, before displaying an interface ofthe first application, the tablet may first determine whether the firstapplication supports landscape-mode full-screen display. If the firstapplication does not support landscape-mode full-screen display, thetablet uses the area display method provided in this embodiment of thisapplication, to display the first interface of the first application inthe first display area and display another interface of the firstapplication.

If the first application supports landscape-mode full-screen display, inone case, the tablet may consider, in default, displaying an interfaceof the first application in the landscape-mode full-screen displaymanner. In another case, the tablet may query whether the user uses thelandscape-mode full-screen display manner or uses the area displaymanner provided in this embodiment of this application. If the userindicates to use the landscape-mode full-screen display manner, thetablet displays an interface of the first application in thelandscape-mode full-screen display manner. If the user indicates to usethe area display manner, the tablet displays an interface of the firstapplication by using the display method provided in this embodiment ofthis application. For example, referring to FIG. 13, the tablet may usea prompt box 1301 to prompt the user to select a display manner.Alternatively, the user may set some whitelists, where applications inthe whitelists use the area display manner when the tablet is in alandscape mode, or applications in the whitelists use the full-screendisplay manner when the tablet is in a landscape mode.

In some other embodiments, the tablet displays an interface of the firstapplication in the area display manner in the landscape orientationstate. After the tablet is switched from the landscape orientation stateto the portrait orientation state, the tablet displays an interface ofthe first application in full screen in the portrait orientation state.

In this case, the interface of the first application displayed by thetablet in full screen in the portrait orientation state may be aninterface that is most recently displayed by the tablet in a displayarea in the landscape orientation state. For example, based on FIG. 11A,the interface that is most recently displayed by the tablet in thedisplay area in the landscape orientation state is the interface 1102.After the tablet is switched from the landscape orientation state to theportrait orientation state, the tablet may display the interface 1102 infull screen in the portrait orientation state.

Alternatively, the interface of the first application displayed by thetablet in full screen in the portrait orientation state may be aninterface on which a user operation is most recently detected by thetablet in a display area in the landscape orientation state. Forexample, based on FIG. 11A, the interface on which the user operation ismost recently detected by the tablet in the display area in thelandscape orientation state is the interface 1101. After the tablet isswitched from the landscape orientation state to the portraitorientation state, referring to FIG. 14, the tablet may display theinterface 1101 in full screen in the portrait orientation state.

Alternatively, the interface of the first application displayed by thetablet in full screen in the portrait orientation state may be aninterface that is most recently displayed by the tablet in a presetdisplay area in the landscape orientation state. For example, the presetdisplay area is the first display area, and based on FIG. 11A, theinterface in the first display area is the interface 1101. After thetablet is switched from the landscape orientation state to the portraitorientation state, the tablet may display the interface 1101 in fullscreen in the portrait orientation state.

In the portrait orientation state, an absolute value of a differencebetween the aspect ratio of the display screen of the tablet and thepreset ratio is usually less than or equal to the preset value 2, thatis, the aspect ratio of the display screen of the tablet differsslightly from the preset ratio. Therefore, the tablet can normallydisplay an interface of an application in the portrait orientationstate. After the tablet displays an interface of the first applicationin the landscape orientation state, if the tablet is switched to theportrait orientation state, the tablet normally displays the interfaceof the first application in the portrait orientation state (in aportrait-mode full-screen display manner). In addition, when detectingan operation of the user for opening another interface, the tabletnormally displays the another interface in the portrait orientationstate. In other words, the tablet can normally display an interface ofan application both in the portrait orientation state and the landscapeorientation state.

The foregoing uses examples for description in which the display screenof the tablet includes two display areas in the landscape orientationstate. In some other embodiments, the display screen of the tablet mayalternatively include one display area or at least two display areas inthe landscape orientation state.

For example, referring to FIG. 15, in the landscape orientation state,the display screen of the tablet includes a display area 1501, and anabsolute value of a difference between an aspect ratio of the displayarea and the preset ratio is less than or equal to the preset value 2,that is, the aspect ratio of the display area differs slightly from thepreset ratio. When displaying an interface of an application, the tabletcan normally display the interface of an application in the display areaof the display screen.

In some embodiments, in the landscape orientation state, when displayingthe first interface of the first application, the tablet includes thedisplay area 1501 shown in FIG. 13, and the tablet displays the firstinterface in the display area 1501. When the tablet continues displayinganother interface of the first application, the display screen includesthe display area 601 and the display area 602 shown in FIG. 6, thetablet displays the first interface of the first application in thefirst display area 601, and displays the another interface of the firstapplication in the display area 601 and the display area 602 by usingthe display method described in the foregoing embodiment.

For another example, referring to FIG. 16, in the landscape orientationstate, the display screen of the tablet includes three display areas: adisplay area 1601, a display area 1602, and a display area 1603. Thetablet may display different interfaces of an application in the threedisplay areas. For example, if a user operation requests to open a newinterface that corresponds to a same level as an interface in a currentdisplay area, the new interface is displayed in the current displayarea. If a user operation requests to open a new interface at a levelhigher than an interface in a current display area, the new interface isdisplayed in a display area on the left of the current display area; andif there is no display area on the left of the current display area, thenew interface is displayed in the current display area. If a useroperation requests to open a new interface at a level lower than aninterface in a current display area, the new interface is displayed in adisplay area on the right of the current display area; and if there isno display area on the right of the current display area, the newinterface is displayed in the current display area.

It can be understood that, to implement the foregoing functions, theelectronic device includes corresponding hardware and/or softwaremodules for performing the functions. With reference to algorithm stepsdescribed in the embodiments disclosed in this application. embodimentsof this application can be implemented in a form of hardware or hardwareand computer software. Whether a function is performed by hardware orhardware driven by computer software depends on particular applicationsand design constraints of the technical solutions. A person skilled inthe art may use different methods to implement the described functionsfor each particular application with reference to the embodiments, butit should not be considered that the implementation goes beyond thescope of the embodiments of this application.

In this embodiment, function modules of the electronic device may beobtained through division based on the foregoing method example. Forexample, each function module may be obtained through division incorrespondence to each function, or at least two functions may beintegrated into one processing module. The integrated module may beimplemented by using hardware. It should be noted that, in thisembodiment, module division is used as an example, and is merely alogical function division. In actual implementation, another divisionmanner may be used.

When each function module is obtained through division in correspondenceto each function, FIG. 17 is a possible schematic composition diagram ofan electronic device 1700 in the foregoing embodiments. As shown in FIG.17, the electronic device 1700 may include a display unit 1701 and adetection unit 1702.

The display unit 1701 may be configured to: support the electronicdevice 1700 in performing step 401A, step 401B, step 403, step 405, step407, step 408, step 410, step 411, step 412, step 413, and the like,and/or perform other processes in the technologies described in thisspecification.

A processing unit 1702 may be configured to: support the electronicdevice 1700 in performing step 402, step 404, step 406, step 409, andthe like, and/or perform other processes in the technologies describedin this specification.

It should be noted that all related content of various steps in theforegoing method embodiment may be cited in function descriptions of acorresponding function module. Details are not described herein again.

The electronic device 1700 provided in this embodiment is configured toperform the application display method, and therefore can achieve a sameeffect as the foregoing implementation method.

When the integrated unit is used, the electronic device 1700 may includea processing module, a storage module, and a communications module. Theprocessing module may be configured to control and manage actions of theelectronic device 1700. For example, the processing module may beconfigured to support the electronic device 1700 in performing stepsperformed by the display unit 1701 and the detection unit 1702. Thestorage module may be configured to support the electronic device 1700in storing program code, data, and the like. The communications modulemay be configured to support the electronic device 1700 in communicatingwith another device.

The processing module 81 may be a processor or a controller. Theprocessor may implement or execute various example logical blocks,modules, and circuits described with reference to content disclosed inthis application. Alternatively, the processor may be a combination ofprocessors implementing a computing function, for example, a combinationof one or more microprocessors, or a combination of the digital signalprocessing (digital signal processing, DSP) and a microprocessor. Thestorage module may be a memory. The communications module may bespecifically a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip,or a device that interacts with another electronic device.

In an embodiment, when the processing module is a processor and thestorage module is a memory, the electronic device in this embodiment maybe a device that is of the structure shown in FIG. 2A.

An embodiment of this application further provides a computer storagemedium. The computer storage medium stores a computer instruction. Whenthe computer instruction is run on an electronic device, the electronicdevice is enabled to perform the foregoing related method steps toimplement the application display method in the foregoing embodiment.

An embodiment of this application further provides a computer programproduct. When the computer program product is run on a computer, thecomputer is enabled to perform the foregoing related steps to implementthe application display method performed by the electronic device in theforegoing embodiment.

In addition, an embodiment of this application further provides anapparatus. The apparatus may be specifically a chip, a component, or amodule, and the apparatus may include a processor and a memory that areconnected to each other. The memory is configured to store a computerexecutable instruction. When the apparatus runs, the processor canexecute the computer executable instruction stored in the memory, sothat the chip performs the application display method performed by theelectronic device in the method embodiment.

Any one of the electronic device, the computer storage medium, thecomputer program product, or the chip provided in the embodiments isconfigured to perform the corresponding method provided above.Therefore, for beneficial effects thereof, refer to the beneficialeffects of the corresponding method provided above. Details are notdescribed herein again.

The foregoing descriptions about implementations allow a person skilledin the art to understand that, for the purpose of convenient and briefdescription, division of the foregoing function modules is used as anexample for illustration. In actual application, the foregoing functionscan be allocated to different modules and implemented according to arequirement, that is, an inner structure of an apparatus is divided intodifferent function modules to implement all or some of the functionsdescribed above.

In the several embodiments provided in this application, it should beunderstood that the disclosed apparatus and method may be implemented inother manners. For example, the described apparatus embodiment is merelyan example. For example, the module or unit division is merely logicalfunction division and may be other division in actual implementation.For example, a plurality of units or components may be combined orintegrated into another apparatus, or some features may be ignored ornot performed. In addition, the displayed or discussed mutual couplingsor direct couplings or communication connections may be implemented byusing some interfaces. The indirect couplings or communicationconnections between the apparatuses or units may be implemented inelectronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may be one or more physicalunits, may be located in one place, or may be distributed on differentplaces. Some or all of the units may be selected based on actualrequirements to achieve the objectives of the solutions of theembodiments.

In addition, function units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units are integrated into one unit. Theintegrated unit may be implemented in a form of hardware, or may beimplemented in a form of a software function unit.

When the integrated unit is implemented in the form of a softwarefunction unit and sold or used as an independent product, the integratedunit may be stored in a readable storage medium. Based on such anunderstanding, the technical solutions of this application essentially,or the part contributing to the conventional technology, or all or someof the technical solutions may be implemented in the form of a softwareproduct. The software product is stored in a storage medium and includesseveral instructions for instructing a device (which may be asingle-chip microcomputer, a chip or the like) or a processor(processor) to perform all or some of the steps of the methods describedin the embodiments of this application. The foregoing storage mediumincludes: any medium that can store program code, such as a USB flashdrive, a removable hard disk, a read-only memory (read-only memory,ROM), a random access memory (random access memory, RAM), a magneticdisk, or an optical disc.

The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of thisapplication. Any variation or replacement within the technical scopedisclosed in this application shall fall within the protection scope ofthis application. Therefore, the protection scope of this applicationshall be subject to the protection scope of the claims.

1.-18. (canceled)
 19. An electronic device comprising: a display screencomprising at least two areas, wherein the at least two areas comprise afirst area and a second area, and wherein different areas of the displayscreen do not overlap; a memory configured to store one or more programsand a first application, wherein the first application is a shoppingtype application; and a processor coupled to the memory and the displayscreen, wherein the processor is configured to execute the one or moreprograms to cause the electronic device to be configured to: detect afirst operation; display, in response to the first operation, a firstinterface of the first application in the first area, wherein the firstinterface is a home page of the first application; detect, on the firstinterface, a second operation to open a second interface of the firstapplication, wherein the second interface is a commodity list interfaceand comprises a first link of a first commodity; display, in response tothe second operation, the second interface in the second area; detect atapping operation for the first link; display, in response to thetapping operation, a detail page of the first commodity in the secondarea; and update, in response to the tapping operation, the firstinterface to the second interface.
 20. The electronic device of claim19, wherein the processor is configured to execute the one or moreprograms to cause the electronic device to be further configured tostart the first application in response to the first operation.
 21. Theelectronic device of claim 19, wherein the first area is located on aleft side of the second area.
 22. The electronic device of claim 19,wherein the memory is further configured to store a display solutioncorresponding to the first application, and wherein the processor isconfigured to execute the one or more programs to cause the electronicdevice to be further configured to display interfaces of the firstapplication based on the display solution.
 23. The electronic device ofclaim 19, wherein a first display height of the first interface whilebeing displayed in the first area is the same as a second display heightof the second interface while being displayed in the second area. 24.The electronic device of claim 19, wherein the processor is configuredto execute the one or more programs to cause the electronic device to befurther configured to display the second interface after detecting thata user has searched for a commodity on the first interface.
 25. Theelectronic device of claim 19, wherein the processor is configured toexecute the one or more programs to cause the electronic device to befurther configured to display, in response to the first operation and ina landscape orientation state, the first interface in the first area.26. The electronic device of claim 25, wherein, in the landscapeorientation state, each included angle between long sides of the displayscreen and a horizontal plane is less than or equal to a preset value.27. The electronic device of claim 19, wherein a second level of thesecond interface is lower than a first level of the first interface, orwherein a third level of the detail page is lower than the second level.28. The electronic device of claim 19, wherein the processor isconfigured to execute the one or more programs to cause the electronicdevice to be further configured to avoid displaying a third interface ofthe first application in the second area while displaying the firstinterface in the first area.
 29. The electronic device of claim 19,wherein the processor is configured to execute the one or more programsto cause the electronic device to be further configured to continuedisplaying the first interface in the first area while displaying thesecond interface in the second area.
 30. The electronic device of claim19, wherein before detecting the first operation, the processor isconfigured to execute the one or more programs to cause the electronicdevice to be further configured to display a desktop in full screen in alandscape orientation state, and wherein the first operation enables theelectronic device to start the first application.
 31. The electronicdevice of claim 19, wherein before detecting the first operation, theprocessor is configured to execute the one or more programs to cause theelectronic device to be further configured to display the firstinterface in a full screen in a portrait orientation state, and whereinthe first operation enables the electronic device to switch from theportrait orientation state to a landscape orientation state.
 32. Theelectronic device of claim 25, wherein the processor is configured toexecute the one or more programs to cause the electronic device to befurther configured to: display the first interface in the first areawhen the first application does not support a landscape-mode full-screendisplay; or when the first application supports the landscape-modefull-screen display: prompt a user to select a display manner, whereinthe display manner comprises a landscape-mode full-screen display mannerand an area display manner; and further display, in response to the areadisplay manner being selected by the user, the first interface in thefirst area.
 33. The electronic device of claim 19, wherein the processoris configured to execute the one or more programs to cause theelectronic device to be further configured to display a third interfaceof the first application in a full screen in a portrait orientationstate when the electronic device is switched to the portrait orientationstate, and wherein, in the portrait orientation state, each includedangle between long sides of the display screen and a horizontal plane isgreater than a preset value.
 34. The electronic device of claim 33,wherein the third interface is one of: a fourth interface that is mostrecently displayed by the electronic device in a landscape orientationstate; a fifth interface on which a user operation is most recentlydetected by the electronic device in the landscape orientation state; ora sixth interface that is most recently displayed by the electronicdevice in a preset area in the landscape orientation state.
 35. Theelectronic device of claim 19, wherein before displaying the firstinterface, the processor is configured to execute the one or moreprograms to cause the electronic device to be further configured todisplay an advertising page of the first application in the first area.36. The electronic device of claim 19, wherein the second operation is atap operation on the first interface, and wherein the processor isconfigured to execute the one or more programs to cause the electronicdevice to be further configured to change, in response to the tapoperation, a display effect of content on the first interface.
 37. Theelectronic device of claim 36, wherein the processor is configured toexecute the one or more programs to cause the electronic device to befurther configured to change, in response to the tap operation, at leastone of a color of the content, a brightness of the content, a contrastof the content, a grayscale of the content, or a display form of thecontent.
 38. An application display method implemented by an electronicdevice, wherein the application display method comprises: detecting afirst operation; displaying, in response to the first operation, a firstinterface of a first application of the electronic device in a firstarea of a display screen of the electronic device, wherein the firstapplication is a shopping type application, wherein the first interfaceis a home page of the first application, wherein the display screencomprises at least two areas comprising the first area and a secondarea, and wherein different areas of the display screen do not overlap;detecting a second operation on the first interface, wherein the secondoperation enables the electronic device to open a second interface ofthe first application, wherein the second interface is a commodity listinterface and comprises at least one link of a commodity; displaying, inresponse to the second operation, the second interface in the secondarea; detecting a tapping operation for tapping a first link of a firstcommodity on the second interface, wherein the at least one linkcomprises the first link; displaying, in response to the tappingoperation, a detail page of the first commodity in the second area; andupdating, in response to the tapping operation, the first interface inthe first area to the second interface.